1
Fork 0

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;