mirror of
https://github.com/samsonjs/media.git
synced 2026-04-12 12:25:47 +00:00
Fix bug: playback is frozen with HLS chunkless preparation
This change fixes a bug where the player is frozen with HLS chunkless
preparation because the audio stream wrappers are not marked as master
timestamp sources before preparation.
#minor-release
PiperOrigin-RevId: 453941815
(cherry picked from commit 9221eeb2d8)
This commit is contained in:
parent
7c0b787bdb
commit
74fbf0171f
1 changed files with 4 additions and 2 deletions
|
|
@ -555,8 +555,10 @@ public final class HlsMediaPeriod
|
|||
this.sampleStreamWrappers = sampleStreamWrappers.toArray(new HlsSampleStreamWrapper[0]);
|
||||
this.manifestUrlIndicesPerWrapper = manifestUrlIndicesPerWrapper.toArray(new int[0][]);
|
||||
pendingPrepareCount = this.sampleStreamWrappers.length;
|
||||
// Set timestamp master and trigger preparation (if not already prepared)
|
||||
this.sampleStreamWrappers[0].setIsTimestampMaster(true);
|
||||
// Set timestamp masters and trigger preparation (if not already prepared)
|
||||
for (int i = 0; i < audioVideoSampleStreamWrapperCount; i++) {
|
||||
this.sampleStreamWrappers[i].setIsTimestampMaster(true);
|
||||
}
|
||||
for (HlsSampleStreamWrapper sampleStreamWrapper : this.sampleStreamWrappers) {
|
||||
sampleStreamWrapper.continuePreparing();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue