var ivmfiles = ["//vjs.zencdn.net/7.18.1/video-js.css", "//ivm.antenaplay.ro/js/html5/videojs6-hls.css?v=3"]; for(var i = 0; i < ivmfiles.length; i++) { var fileref = document.createElement("link") fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", ivmfiles[i]) document.getElementsByTagName("head")[0].appendChild(fileref) } var ivmVideo = document.createElement("video"); ivmVideo.id = "ivm6elhYhw9ZWFU6j6"; ivmVideo.width = ""; ivmVideo.height = ""; ivmVideo.controls = "controls"; ivmVideo.preload = "auto"; ivmVideo.poster = "https://ivm.antenaplay.ro/thumbs/antena1/2019/12/02/6elhYhw9ZWF_2L.jpg"; ivmVideo.classList.add("video-js"); ivmVideo.classList.add("vjs-default-skin"); ivmVideo.classList.add("vjs-big-play-centered"); ivmVideo.classList.add("vjs-16-9"); var ivmSourceFile = document.createElement("source"); ivmSourceFile.src = "https://storage2bp.antenaplay.ro/antena1/2019/12/02/6cb636e2003b78af0703a765bc205dfb42f4c37938fd67dc4a473fc89a973187_360p-wide.mp4/index.m3u8?starttime=1714319788&endtime=1714326988&source=web&token=OgM1To4Drl2vOBM0pU0cuWiC9ic="; ivmSourceFile.type = "application/x-mpegURL"; ivmVideo.appendChild(ivmSourceFile); document.getElementById("videoHolder").appendChild(ivmVideo); function _LoadIVMScript(c,b){ var a=document.createElement("script");a.type="text/javascript";a.readyState?a.onreadystatechange=function(){ if("loaded"==a.readyState||"complete"==a.readyState)a.onreadystatechange=null,b() }:a.onload=function(){ b() };a.src=c;document.getElementsByTagName("head")[0].appendChild(a) }; function _LoadIVMScriptWithError(c,b,d){ var a=document.createElement("script");a.type="text/javascript";a.readyState?a.onreadystatechange=function(){ if("loaded"==a.readyState||"complete"==a.readyState)a.onreadystatechange=null,b() } :a.onload=function(){ b() };a.addEventListener('error', function(ev){ d(ev.target.src) }, true);a.src=c;document.getElementsByTagName("head")[0].appendChild(a) } _LoadIVMScript("//vjs.zencdn.net/7.18.1/video.js",function (){ _LoadIVMScript("//ivm.antenaplay.ro/js/html5/videojs7-hls.js?v=10",function (){ _LoadIVMScriptWithError("//imasdk.googleapis.com/js/sdkloader/ima3.js",function () { var player = videojs('ivm6elhYhw9ZWFU6j6'); player.logview({ "container": "ivm6elhYhw9ZWFU6j6", "vid": "6elhYhw9ZWF", "fullshow": 0, "free": 1}); player.cxbrat( { "guid": "6elhYhw9ZWF", "tip_play": "on_demand", "log": "verbose" } ); }, function(url){ var player = videojs('ivm6elhYhw9ZWFU6j6');player.src("https://videoassets.antenaplay.ro/temp/oh-no.mp4");player.logview({ "container": "ivm6elhYhw9ZWFU6j6" });}); } ); } );