mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
HLS: Set initial SampleQueue start times
This ensures BUFFER_FLAG_DECODE_ONLY is set on samples that are before the playback start position, in the case that the queue is created after the start position is set. #minor-release PiperOrigin-RevId: 366249188
This commit is contained in:
parent
f8cc83a458
commit
b93395e7a5
@ -43,6 +43,9 @@
|
|||||||
`EXT-X-DISCONTINUITY` tags in different media playlists occur at
|
`EXT-X-DISCONTINUITY` tags in different media playlists occur at
|
||||||
different positions in time
|
different positions in time
|
||||||
([#8372](https://github.com/google/ExoPlayer/issues/8372)).
|
([#8372](https://github.com/google/ExoPlayer/issues/8372)).
|
||||||
|
* Fix issue that could cause playback of on-demand content to not start in
|
||||||
|
cases where the media playlists referenced by the master playlist have
|
||||||
|
different starting `EXT-X-PROGRAM-DATE-TIME` tags.
|
||||||
* Fix container type detection for segments with incorrect file extension
|
* Fix container type detection for segments with incorrect file extension
|
||||||
or HTTP Content-Type
|
or HTTP Content-Type
|
||||||
([#8733](https://github.com/google/ExoPlayer/issues/8733)).
|
([#8733](https://github.com/google/ExoPlayer/issues/8733)).
|
||||||
|
@ -1070,6 +1070,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
drmSessionManager,
|
drmSessionManager,
|
||||||
drmEventDispatcher,
|
drmEventDispatcher,
|
||||||
overridingDrmInitData);
|
overridingDrmInitData);
|
||||||
|
sampleQueue.setStartTimeUs(lastSeekPositionUs);
|
||||||
if (isAudioVideo) {
|
if (isAudioVideo) {
|
||||||
sampleQueue.setDrmInitData(drmInitData);
|
sampleQueue.setDrmInitData(drmInitData);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user