Skip to content

Commit 0638d9a

Browse files
committed
Setup as audio-only when main segment has no video
Fixes video-dev#7524
1 parent a3c63bd commit 0638d9a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/controller/buffer-controller.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,18 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
664664
if (this.sourceBufferCount) {
665665
return;
666666
}
667+
668+
if (
669+
this.bufferCodecEventsTotal > 1 &&
670+
!this.tracks.video &&
671+
!data.video &&
672+
data.audio?.id === 'main'
673+
) {
674+
// MVP is missing CODECS and only audio was found in main segment (#7524)
675+
this.log(`Main audio-only`);
676+
this.bufferCodecEventsTotal = 1;
677+
}
678+
667679
if (this.mediaSourceOpenOrEnded) {
668680
this.checkPendingTracks();
669681
}

0 commit comments

Comments
 (0)