diff --git a/css/player-base.js b/css/player-base.js index 651f6e4b..d6d13bac 100644 --- a/css/player-base.js +++ b/css/player-base.js @@ -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", () => { } }); } -}); \ No newline at end of file +}); + +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; \ No newline at end of file