Skip to content

Commit

Permalink
Reset stream controller ENDED state after flushing the buffer for mai…
Browse files Browse the repository at this point in the history
…n audio-only streams

Completes #3774
  • Loading branch information
Rob Walch committed Apr 14, 2021
1 parent 4d98e18 commit 8851472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controller/stream-controller.ts
Expand Up @@ -935,7 +935,10 @@ export default class StreamController
event: Events.BUFFER_FLUSHED,
{ type }: BufferFlushedData
) {
if (type !== ElementaryStreamTypes.AUDIO) {
if (
type !== ElementaryStreamTypes.AUDIO ||
(this.audioOnly && !this.altAudio)
) {
const media =
(type === ElementaryStreamTypes.VIDEO
? this.videoBuffer
Expand Down

0 comments on commit 8851472

Please sign in to comment.