mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 01:58:56 +01:00
add window.pokeplayer object :3
This commit is contained in:
parent
1a6accc21b
commit
102ba2b9be
1 changed files with 11 additions and 2 deletions
|
@ -12,7 +12,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
if (qua !== "medium") {
|
||||
const audio = document.getElementById('aud');
|
||||
|
||||
// Sync volume between audio and video
|
||||
const syncVolume = () => {
|
||||
audio.volume = video.volume();
|
||||
};
|
||||
|
@ -104,3 +103,13 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
window.pokePlayer = {
|
||||
ver:`16-vjs-${videojs.VERSION}`,
|
||||
canHasAmbientMode:true,
|
||||
video:new URLSearchParams(window.location.search).get('v'),
|
||||
supported_itag_list:["136", "140", "298", "18"],
|
||||
formats:["SD", "HD"],
|
||||
}
|
||||
|
||||
var _yt_player= videojs;
|
Loading…
Reference in a new issue