var ivmfiles = ["//vjs.zencdn.net/7.18.1/video-js.min.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 vjsdefstyle = document.createElement('style'); vjsdefstyle.className = "vjs-styles-defaults"; vjsdefstyle.textContent = "#video0 .video-js { width: 100vwpx; height: 100vhpx; }"; document.getElementsByTagName("head")[0].appendChild(vjsdefstyle) var ivmVideo = document.createElement("video"); ivmVideo.id = "ivmSteXroslWJahuwX"; ivmVideo.width = "100vw"; ivmVideo.height = "100vh"; ivmVideo.controls = "controls"; ivmVideo.preload = "auto"; ivmVideo.poster = "https://ivm.antenaplay.ro/thumbs/antena3/2025/02/19/SteXroslWJa_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://sod1.antenaplay.ro/antena3/2025/02/19/01549a9aff5088522f5ca98029e7a6968a1f4411b277ed7873a6bbded882e29e_360p-wide.mp4/index.m3u8?version=1&session=146f6f93ea4a33c63633&starttime=1760739182&endtime=1760746382&source=web&guid=SteXroslWJa&token=IMOYtseXfiYyi5B5TAF4udNWrqY="; ivmSourceFile.type = "application/x-mpegURL"; ivmVideo.appendChild(ivmSourceFile); document.getElementById("video0").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.min.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('ivmSteXroslWJahuwX'); var options = { id: 'ivmSteXroslWJahuwX', adTagUrl: "https://ivm.antenaplay.ro/vmap.php?guid=SteXroslWJa&url=" + escape(document.location.href) }; if (typeof __cxSegments !== 'undefined' && Array.isArray(__cxSegments) && __cxSegments.length > 0){ options.adTagUrl += '&cxSegments=' + __cxSegments.join(',') } if (typeof __dfp_mature !== 'undefined') { options.adTagUrl += "&mature=" + __dfp_mature; } if (typeof __dfp_categ !== 'undefined') { options.adTagUrl += "&Categ=" + __dfp_categ; } player.ima(options); var contentPlayer = document.getElementById('ivmSteXroslWJahuwX_html5_api'); if ((navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) && contentPlayer.hasAttribute('controls')) { contentPlayer.removeAttribute('controls'); } var startEvent = 'click'; if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) { startEvent = 'touchend'; } player.one(startEvent, function() { player.ima.initializeAdDisplayContainer(); }); player.logview({ "container": "ivmSteXroslWJahuwX", "vid": "SteXroslWJa", "fullshow": 0, "free": 1}); player.cxbrat( { "guid": "SteXroslWJa", "tip_play": "on_demand", "log": "verbose" } ); }, function(url){ var player = videojs('ivmSteXroslWJahuwX');player.src("https://videoassets.antenaplay.ro/temp/oh-no.mp4");player.logview({ "container": "ivmSteXroslWJahuwX" });}); } ); } );