var mijsvcontent1083330=''; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
 
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+=' \n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='
\n'; mijsvcontent1083330+='\n'; document.getElementById('noxmi24div').innerHTML=mijsvcontent1083330; /* * @does: log in test enviroment * @use: mi24logger.log(tolog) */ if (typeof window.docReady == 'undefined') { (function(funcName, baseObj) { // The public function name defaults to window.docReady // but you can pass in your own object and own function name and those will be used // if you want to put them in a different namespace funcName = funcName || "docReady"; baseObj = baseObj || window; var readyList = []; var readyFired = false; var readyEventHandlersInstalled = false; // call this when the document is ready // this function protects itself against being called more than once function ready() { if (!readyFired) { // this must be set to true before we start calling callbacks readyFired = true; for (var i = 0; i < readyList.length; i++) { // if a callback here happens to add new ready handlers, // the docReady() function will see that it already fired // and will schedule the callback to run right after // this event loop finishes so all handlers will still execute // in order and no new ones will be added to the readyList // while we are processing the list readyList[i].fn.call(window, readyList[i].ctx); } // allow any closures held by these functions to free readyList = []; } } function readyStateChange() { if ( document.readyState === "complete" ) { ready(); } } // This is the one public interface // docReady(fn, context); // the context argument is optional - if present, it will be passed // as an argument to the callback baseObj[funcName] = function(callback, context) { // if ready has already fired, then just schedule the callback // to fire asynchronously, but right away if (readyFired) { setTimeout(function() {callback(context);}, 1); return; } else { // add the function and context to the list readyList.push({fn: callback, ctx: context}); } // if document already ready to go, schedule the ready function to run if (document.readyState === "complete") { setTimeout(ready, 1); } else if (!readyEventHandlersInstalled) { // otherwise if we don't have event handlers installed, install them if (document.addEventListener) { // first choice is DOMContentLoaded event document.addEventListener("DOMContentLoaded", ready, false); // backup is window load event window.addEventListener("load", ready, false); } else { // must be IE document.attachEvent("onreadystatechange", readyStateChange); window.attachEvent("onload", ready); } readyEventHandlersInstalled = true; } } })("docReady", window); } //mi24funcClazz = function() { function mi24func() { /* * load Script mi24player.load("myscript.*", "css/js") */ this.load = function (fname, ftype) { if (ftype == "js") { var fref = document.createElement("script"); fref.setAttribute("type", "text/javascript"); fref.setAttribute("src", fname) } else if (type == "css") { var fref = document.createElement("link"); fref.setAttribute("rel", "stylesheet"); fref.setAttribute("type", "text/css"); fref.setAttribute("href", fname) } if (typeof fref != "undefined") { document.getElementsByTagName("head")[0].appendChild(fref); } }; // return fref; this.decodeBase64 = function (s) { var e = {}, i, k, v = [], r = "", w = String.fromCharCode; var n = [ [65, 91], [97, 123], [48, 58], [43, 44], [47, 48] ]; for (z in n) { for (i = n[z][0]; i < n[z][1]; i++) { v.push(w(i)); } } for (i = 0; i < 64; i++) { e[v[i]] = i; } for (i = 0; i < s.length; i += 72) { var b = 0, c, x, l = 0, o = s.substring(i, i + 72); for (x = 0; x < o.length; x++) { c = e[o.charAt(x)]; b = (b << 6) + c; l += 6; while (l >= 8) { r += w((b >>> (l -= 8)) % 256); } } } mi24logger.log("mi24func.decodeBase64:" + r); return r; }; /* * @does execute jsscript, loop until given objects are loaded * @input String objs (space separated objectnames) , String jsscript (executable js) */ this.executeIfPresent = function (objs, jsscript) { isloaded = true; idletime = 100; maxIterations = 50; if (typeof objs == "string") { // remove multiple blanks objStr = objs.replace(/\s{2,}/g, " "); // remove trailing, leading blank objStr = objStr.replace(/^\s+|\s+$/g, ""); objs = objStr.split(" "); objs.str = objStr; objs.it = 0; } if (objs.it > maxIterations) { mi24logger.log("[" + objStr + "]" + " is absent, max iterations reached"); return false; } for (var i = 0; i < objs.length; i++) { try { eval(objs[i]); //eval(obj); if (typeof eval(objs[i]) != "undefined") { isloaded = isloaded && true; } else { isloaded = isloaded && false; } } catch (e) { isloaded = false; } } if (!isloaded) { window.setTimeout(function () { objs.it++; //mi24logger.log(objs.it); mi24func.executeIfPresent(objs, jsscript); }, idletime); } else { if (objs.it > 0) { mi24logger.log("[" + objs.str + "]" + " is present " + (objs.it > 0 ? "(loops:" + objs.it : "") + " time:" + objs.it * idletime + " msec)"); } else { mi24logger.log("[" + objs.str + "]" + " is present "); } try { eval(jsscript); } catch (e) { mi24logger.log(e); return false; } return true; } }; this.showPlayerDo = function (id) { var hasFlash = false; var hasHtml5 = false; try { hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')); } catch(exception) { if ( 'undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin != null ) { hasFlash = true; } } if (hasFlash == false) { if (!document.createElement('video').canPlayType) { if (jQuery('.mi24wmv_' + id).length == 0) { alert("Kein Flash Plugin installiert."); hasFlash = true; } } else { hasHtml5 = true } } if (hasFlash) { jQuery('.mi24html5_' + id).remove(); jQuery('.mi24wmv_' + id).remove(); jQuery('.mi24flash_' + id).css('visibility', 'visible'); window.setTimeout(function() { mi24func.executeIfPresent("mi24playerClazz",eval("mi24Initialize_flash_"+id+"()")); }, 800); } else if (hasHtml5) { jQuery('.mi24flash_' + id).remove(); jQuery('.mi24wmv_' + id).remove(); jQuery('.mi24html5_' + id).show(); window.setTimeout(function() { mi24func.executeIfPresent("mi24playerClazz",eval("mi24Initialize_html5_"+id+"()")); }, 800); } else { jQuery('.mi24flash_' + id).remove(); jQuery('.mi24html5_' + id).remove(); jQuery('.mi24wmv_' + id).show(); } } } //var mi24func = new mi24funcClazz(); var mi24func = new mi24func(); //mi24loggerClazz = function() { function mi24logger() { var domainPattern = ["(dev\.edge-cdn\.net)", "(test\.local)", "(develop-edge)", "(vm6\.ja\.mi24)"]; //var domainPattern = ["(dev\.edge-cdn\.net)","(jt\.mi24\.tv)", "(localhost)", "(develop-edge)", "(vm6\.jt\.mi24)"]; var domainPatternStr = ""; var regex; var logEnabled; var errorEnabled; this.addDomainPattern = function (pattern) { domainPattern.push("(" + pattern + ")"); mi24logger.log("mi24logger domain pattern: " + mi24logger.getDomainPattern()); this.compileDomainRegEx(); }; this.compileDomainRegEx = function () { domainPatternStr = ""; for (var i = 0; i < domainPattern.length; i++) { domainPatternStr += (i == 0 ? "" : "|") + domainPattern[i]; } regex = new RegExp(domainPatternStr, "i"); logEnabled = regex.test(document.domain); errorEnabled = logEnabled; return regex; }; this.getDomainPattern = function () { return domainPatternStr; }; this.logAll = function () { excludePatternStr = ""; logEnabled = true; }; this.logEnable = function () { logEnabled = true; }; this.logDisable = function () { logEnabled = false; }; this.errorEnable = function () { errorEnabled = true; }; this.errorDisable = function () { errorEnabled = false; }; /* * * @param {type} tolog * @returns {undefined} * @does log ouput (mi24logger.log()) */ this.log = function (tolog) { if (logEnabled) { try { console.log(tolog); } catch (e) { alert(tolog); } } }; /* * * @param {type} tolog * @returns {undefined} * @does log error (mi24logger.error()) */ this.error = function (tolog) { if (errorEnabled) { try { console.log("ERROR: " + tolog); } catch (e) { alert("ERROR: " + tolog); } } } } //var mi24logger = new mi24loggerClazz(); var mi24logger = new mi24logger(); mi24logger.compileDomainRegEx(); mi24logger.log("mi24logger domain pattern: " + mi24logger.getDomainPattern()); if (typeof SWFObject == "undefined") { mi24func.load("https://dl.edge-cdn.net/flashplayer/swfobject.js","js"); //load("https://dl.edge-cdn.net/flashplayer/swfobject.js","js"); } else { var testSWF = new SWFObject(); if(typeof testSWF.attributes.useExpressInstall == "undefined") { mi24func.load("https://dl.edge-cdn.net/flashplayer/swfobject.js","js"); } } if (typeof mi24flashtools == "undefined") { mi24func.load("https://dl.edge-cdn.net/javascript/mi24/src/mi24flashtools.js","js"); //load("https://dl.edge-cdn.net/javascript/mi24/src/mi24flashtools.js","js"); } if (typeof mi24Clazz == 'undefined') { mi24func.load("https://dl.edge-cdn.net/javascript/mi24/src/mi24.js","js"); } if (typeof jQuery == "undefined") { mi24func.load("https://dl.edge-cdn.net/external/jqueryui/js/jquery-1.8.2.min.js","js"); mi24func.executeIfPresent("jQuery","$.noConflict();jQuery('img').on('resize', function() {console.log('change');});"); } if (typeof mi24playerClazz == "undefined") { mi24func.load("https://dl.edge-cdn.net/javascript/mi24/src/mi24player.js","js"); } if (typeof mi24configClazz == 'undefined') { mi24func.load("https://dl.edge-cdn.net/javascript/mi24/src/mi24config.js","js"); } if (typeof mi24playerClazz == "undefined") { mi24func.executeIfPresent('mi24','mi24.setPlayerVersion(" 2.3.2.3")'); mi24func.executeIfPresent('mi24','mi24.setPlayerActivationDate("17/06/2013")'); mi24func.executeIfPresent('mi24','mi24.addFeature("html5RC1")'); mi24func.executeIfPresent('mi24','mi24.addExpectedFeature("html5RC1")'); } var mi24player_1083330; var mi24config_1083330; if ( typeof mi24PlayerObjs == "undefined" ){ var mi24PlayerObjs = new Array(); } function mi24Initialize_1083330() { try { mi24player_1083330 = new mi24playerClazz("1083330","html5","855"); mi24player_1083330.videoNode = document.getElementById('mainjvideo5_1083330'); mi24player_1083330.thumbNode = document.getElementById('mi24thumb_1083330'); mi24player_1083330.playbtnNode = document.getElementById('mi24play_1083330'); mi24player_1083330.playNode = document.getElementById('mi24play_1083330'); window.mi24PlayerObjs.push( mi24player_1083330 ); mi24config_1083330 = new mi24configClazz("1083330"); mi24player_1083330.setPlayerDimXY("470 270"); mi24config_1083330.init('https%3A%2F%2Fdl.edge-cdn.net%2Fvideoxmls%2Fx%2F3%2F5e%2Fc1%2F%2F0%2FskinXML%2F290.270.470.0.0%2F0%2Ffb059913381d7c5753f679b56c278517dZL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upJPDNepkdz0xCYKWQc_WGxX%2FXxUChrtALkHinug3AEY43qZosxhrDz5q_YDBoW3jiL1AOfRCvD6LfDJJHWI5DwZ7ckGABc1YZu9INdEz8A9bcKm4gnM0M5yUuGYQ8C9OwnhmnYyZ7VqK6J11dUtwh2VLaKkUi1ONtpNJyMlFIYTKBkLX%2FXBtOrtGfjP7W3mC6aCVq_F_9m_9dpNDbm8ITGX7Q3ONmbFSHU-2kslmGat_8Ng9LeNUKOQRHK36BnfLgt7PbFdFuu1_8%252C.xml'); mi24player_1083330.init(mi24player_1083330.videoNode); //mi24player_1083330.initAkamai(); mi24player_1083330.videoNode.addEventListener('play', mi24player_1083330.html5PlayerStatusEvent, false); mi24player_1083330.videoNode.addEventListener('play', mi24player_1083330.html5PlayerOnPlayPressedStatusEvent, false); mi24player_1083330.videoNode.addEventListener('onPlayPressed', mi24player_1083330.html5PlayerStatusEvent, false); mi24player_1083330.videoNode.addEventListener('pause', mi24player_1083330.html5PlayerStatusEvent, false); mi24player_1083330.videoNode.addEventListener('ended', mi24player_1083330.html5PlayerStatusEvent, false); mi24player_1083330.videoNode.addEventListener('timeupdate', mi24player_1083330.html5PlayerStatusEvent, false); mi24player_1083330.registerStatusFunction("ended","mi24config_1083330.showStartScreen()"); mi24player_1083330.registerStatusFunction("play","mi24config_1083330.showPlayer()"); mi24player_1083330.registerStatusFunction('timeupdate','mi24player_1083330.processEvents(mi24player_1083330.getposition())'); /* for single api implementations, clone the first mi24player object */ if(typeof mi24player != "object") { mi24player = mi24player_1083330; } } catch(e) {mi24logger.log(e);} } window.setTimeout(function() { //mi24func.executeIfPresent("mi24playerClazz setAkamaiMediaAnalyticsData mi24configClazz","mi24Initialize_1083330()"); mi24func.executeIfPresent("mi24playerClazz mi24configClazz","mi24Initialize_1083330()"); }, 800);