Skip to content

Commit

Permalink
chore: Add vhs & mpc (vhs.masterPlaylistController_) to window of ind…
Browse files Browse the repository at this point in the history
…ex.html (#875)
  • Loading branch information
brandonocasey authored Jun 22, 2020
1 parent 27bdeef commit bab61d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/index-demo-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@
} else {
sources.dispatchEvent(newEvent('change'));
}
player.ready(() => {
if (player.vhs) {
window.vhs = player.tech_.vhs;
window.mpc = player.tech_.vhs.masterPlaylistController_;
}
});
cb(player);
});
});
Expand Down

0 comments on commit bab61d6

Please sign in to comment.