1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
|
|
window.vxgplayer=function(e,o){if(window.vxgplayer.version="1.8.40",window.vxgplayer.players=window.vxgplayer.players||{},!document.getElementById(e))return console.error(" Player with "+e+" did not found"),void 0;if(!window.vxgplayer.players[e]){if("undefined"==typeof chrome)return vxgplayer.showAvailableInChrome(e),void 0;if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))return vxgplayer.showAvailableInChrome(e),void 0;if(!vxgplayer.browserSupportsPluginPnacl()){console.log("Not installed vxg_media_player"),vxgplayer.showNotInstalled(e);var t=window.RequestFileSystem||window.webkitRequestFileSystem;return t&&t(window.TEMPORARY,100,function(){},function(){vxgplayer.showNotInstalledInIncognitoMode(e)}),void 0}var t=window.RequestFileSystem||window.webkitRequestFileSystem;t?t(window.TEMPORARY,1,function(){vxgplayer.isFrame()||(window.location.href="https://www.videoexpertsgroup.com/player_start/")},function(){console.log("Not installed vxg_media_player")}):window.location.href="https://www.videoexpertsgroup.com/player_start/","https:"==window.location.protocol||vxgplayer.isFrame()||vxgplayer.checkWebSocket().done(function(){}).fail(function(){t(window.TEMPORARY,1,function(){vxgplayer.showWebSocketFailed(e)},function(){vxgplayer.showNotStartedInIncognitoMode(e)})}),"https:"!=window.location.protocol&&vxgplayer.isFrame()&&vxgplayer.checkWebSocket().done(function(){}).fail(function(){vxgplayer.showNotStartedInIFrame(e)}),window.vxgplayer.players[e]=new function(e,o){var t=this;t.id=e,t.player=document.getElementById(e),window.vxgplayer.initOptions(t,o),t.playerWidth=t.options.width||640,t.playerHeight=t.options.height||480,t.playerWidth=parseInt(t.player.getAttribute("width"),10)||t.playerWidth,t.playerHeight=parseInt(t.player.getAttribute("height"),10)||t.playerHeight,t.player.style.width=t.playerWidth+"px",t.player.style.height=t.playerHeight+"px";var r='<div class="vxgplayer-loader" style="display: inline-block"></div><div class="vxgplayer-screenshot-loading" style="display: none"> <div class="vxgplayer-screenshot-loading"> </div></div><div class="vxgplayer-error" style="display: none"> <div class="vxgplayer-error-text" style="display: none"></div></div><div class="vxgplayer-controls-zoom-position"> <div class="vxgplayer-zoom-position-cursor"></div></div><div class="vxgplayer-controls-zoom"> <div class="vxgplayer-zoom-up"></div> <div class="vxgplayer-zoom-progress zoom10x"></div> <div class="vxgplayer-zoom-down"></div></div><div class="vxgplayer-controls"> <div class="vxgplayer-volume-mute"></div> <div class="vxgplayer-volume-down"></div> <div class="vxgplayer-volume-progress vol7"></div> <div class="vxgplayer-volume-up"></div> <div class="vxgplayer-play"></div> <div class="vxgplayer-pause" style="display: none"></div> <div class="vxgplayer-stop" style="display: none"></div> <div class="vxgplayer-fullscreen"></div> <div class="vxgplayer-takescreenshot"></div> <div class="vxgplayer-scale"></div></div>'+window.vxgplayer.generateEmbededElement(t);t.player.innerHTML=r;var a=t.player.getElementsByClassName("vxgplayer-controls")[0],n=t.player.getElementsByClassName("vxgplayer-controls-zoom")[0],l=t.player.getElementsByClassName("vxgplayer-controls-zoom-position")[0],s=t.player.getElementsByClassName("vxgplayer-play")[0],i=t.player.getElementsByClassName("vxgplayer-pause")[0],m=t.player.getElementsByClassName("vxgplayer-stop")[0],d=t.player.getElementsByClassName("vxgplayer-fullscreen")[0],c=t.player.getElementsByClassName("vxgplayer-takescreenshot")[0],p=t.player.getElementsByClassName("vxgplayer-screenshot-loading")[0];t.player.getElementsByClassName("vxgplayer-scale")[0];var u=t.player.getElementsByClassName("vxgplayer-zoom-up")[0],y=t.player.getElementsByClassName("vxgplayer-zoom-down")[0],g=t.player.getElementsByClassName("vxgplayer-zoom-progress")[0],v=t.player.getElementsByClassName("vxgplayer-
|