diff --git a/scripts/index-demo-page.js b/scripts/index-demo-page.js index 838c8bc4e..2306eae35 100644 --- a/scripts/index-demo-page.js +++ b/scripts/index-demo-page.js @@ -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); }); });