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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
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); |
|
|
|
}); |
|
|
|
}); |
|
|
|