CyTube/templates/iframe.pug
Xaekai f6ba5b71e8 Update vjs components
Upgrade Video.js core to v7.18.0 from v5.10.7
Upgrade Dash.js to v4.2.8 from v2.6.3
Upgrade videojs-contrib-dash to v5.1.1 from v2.9.1
Modify videojs-resolution-switcher
2022-09-18 19:10:36 -07:00

37 lines
1 KiB
Plaintext

doctype html
html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(name="referrer", content="same-origin")
link(rel="stylesheet", href="/css/video-js.css")
link(rel="stylesheet", href="/css/videojs-resolution-switcher.css")
style.
body { overflow-y: hidden }
body
#wrap
#videowrap
#ytapiplayer
script.
const USEROPTS = {
default_quality: 'auto'
}
const CLIENT = {
leader: false
}
let VOLUME = 0;
function waitUntilDefined(obj, key, fn) {
if(typeof obj[key] === "undefined") {
setTimeout(function () {
waitUntilDefined(obj, key, fn);
}, 100);
return;
}
fn();
}
script(src="/js/jquery-1.12.4.min.js")
script(src="/js/vjs/video.js")
script(src="/js/vjs/videojs-resolution-switcher.js")
script(src="/js/playerjs-0.0.12.js")
script(src="/js/player.js")