Browse Source

chore: Add vhs & mpc (vhs.masterPlaylistController_) to window of index.html (#875)

pull/876/head
Brandon Casey 5 years ago
committed by GitHub
parent
commit
bab61d66be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      scripts/index-demo-page.js

6
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);
});
});

Loading…
Cancel
Save