mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45: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 917484100d)
This commit is contained in:
parent
56079ba84e
commit
b7cf772afb
1 changed files with 4 additions and 2 deletions
|
|
@ -553,8 +553,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