Skip to content

Commit

Permalink
Merge pull request #3776 from video-dev/bugfix/level-or-track-switch-…
Browse files Browse the repository at this point in the history
…after-ended

Reset stream controller ENDED state pt.2
  • Loading branch information
robwalch committed Apr 14, 2021
2 parents ed20981 + 8851472 commit d4aabab
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 d4aabab

Please sign in to comment.