Skip to content

Startup failure/freeze when additional discontinuity tags in alternate audio/text tracks #323

Open
@scottfennell

Description

@scottfennell

Media3 Version

ExoPlayer 2.17.1

Devices that reproduce the issue

All devices

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

No

Reproduction steps

Configure the player to disallow chunkless startup: setAllowChunklessPreparation(false)

Details
Media must contain a track that that has isMasterTimestampSource set to false during the preparation step and contains 1 or more additional #EXT-X-DISCONTINUITY tags before the first sample chunk.

This scenario causes the timestampAdjuster provided for that discontinuity sequence to be provided for only to a single track. That HlsMediaChunk is unable to initialize the timestampAdjuster causing the call : timestampAdjuster.sharedInitializeOrWait(isMasterTimestampSource, startTimeUs); to block loading until the timestampAdjuster initialization can be completed.

Since no other tracks contain the same discontinuity sequence and will not be provided with the same timestampAdjuster as the waiting HlsMediaChunk's - loading will never complete.

Expected result

Playback starts

Actual result

Playback is stuck in loading state

Media

https://storage.googleapis.com/mlbapp-streaming-resources/big_buck_bunny_disc/x36xhzz.m3u8

Bug Report

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions