Skip to content

Commit

Permalink
buffer-controller: if no video codec signaled but alt-audio found and…
Browse files Browse the repository at this point in the history
… levels available, set video sourcebuffer as expected

related to #1232
  • Loading branch information
mangui committed Jun 27, 2017
1 parent df81ce1 commit 8578361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/buffer-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class BufferController extends EventHandler {

onManifestParsed(data) {
let audioExpected = data.audio,
videoExpected = data.video,
videoExpected = data.video || (data.levels.length && data.audio),
sourceBufferNb = 0;
// in case of alt audio 2 BUFFER_CODECS events will be triggered, one per stream controller
// sourcebuffers will be created all at once when the expected nb of tracks will be reached
Expand Down

0 comments on commit 8578361

Please sign in to comment.