1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

add window.pokeplayer object :3

This commit is contained in:
ashley 2024-09-02 22:31:03 +00:00
parent 1a6accc21b
commit 102ba2b9be

View file

@ -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();
};
@ -103,4 +102,14 @@ 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;