
Some of the events are emitted by the media periods itself and their index may not be available in the publicly accessible timeline yet. To prevent this, we currently check for timeline.isEmpty() only. But this may also happen for dynamic changes, e.g. when new sources are added in fast succession and a manifest for one of the new sources starts loading before the updated timeline is reported. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=194057401