(function (cjs, an) { var p; // shortcut to reference prototypes var lib={};var ss={};var img={}; var rect; // used to reference frame bounds lib.ssMetadata = []; // symbols: (lib.CP_970x250_0000_Logocopy3 = function() { this.initialize(img.CP_970x250_0000_Logocopy3); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,138,96); (lib.CP_970x250_0001_Text2 = function() { this.initialize(img.CP_970x250_0001_Text2); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,204,178); (lib.CP_970x250_0002_bt = function() { this.initialize(img.CP_970x250_0002_bt); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,195,59); (lib.CP_970x250_0003_petal3copy = function() { this.initialize(img.CP_970x250_0003_petal3copy); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,665,250); (lib.CP_970x250_0004_BG3 = function() { this.initialize(img.CP_970x250_0004_BG3); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,970,250); (lib.CP_970x250_0005_Text2 = function() { this.initialize(img.CP_970x250_0005_Text2); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,188,175); (lib.CP_970x250_0006_BP = function() { this.initialize(img.CP_970x250_0006_BP); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,497,250); (lib.CP_970x250_0007_BG2 = function() { this.initialize(img.CP_970x250_0007_BG2); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,970,250); (lib.CP_970x250_0008_Text = function() { this.initialize(img.CP_970x250_0008_Text); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,626,250); (lib.CP_970x250_0009_BP = function() { this.initialize(img.CP_970x250_0009_BP); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,230,233); (lib.CP_970x250_0010_BG1 = function() { this.initialize(img.CP_970x250_0010_BG1); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,970,250);// helper functions: function mc_symbol_clone() { var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop)); clone.gotoAndStop(this.currentFrame); clone.paused = this.paused; clone.framerate = this.framerate; return clone; } function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) { var prototype = cjs.extend(symbol, cjs.MovieClip); prototype.clone = mc_symbol_clone; prototype.nominalBounds = nominalBounds; prototype.frameBounds = frameBounds; return prototype; } (lib.Tween21 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0002_bt(); this.instance.parent = this; this.instance.setTransform(-97.5,-29.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-97.5,-29.5,195,59); p.frameBounds = [rect]; (lib.Tween20 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0002_bt(); this.instance.parent = this; this.instance.setTransform(-97.5,-29.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-97.5,-29.5,195,59); p.frameBounds = [rect]; (lib.Tween19 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0001_Text2(); this.instance.parent = this; this.instance.setTransform(-102,-89); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-102,-89,204,178); p.frameBounds = [rect]; (lib.Tween18 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0001_Text2(); this.instance.parent = this; this.instance.setTransform(-102,-89); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-102,-89,204,178); p.frameBounds = [rect]; (lib.Tween17 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0003_petal3copy(); this.instance.parent = this; this.instance.setTransform(-332.5,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-332.5,-125,665,250); p.frameBounds = [rect]; (lib.Tween16 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0003_petal3copy(); this.instance.parent = this; this.instance.setTransform(-332.5,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-332.5,-125,665,250); p.frameBounds = [rect]; (lib.Tween15 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFFFFF").ss(1,1,1).p("EhOQgVoMCchAAAMAAAArRMichAAAg"); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FFFFFF").s().p("EhOQAVpMAAAgrRMCchAAAMAAAArRg"); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-501.9,-139.4,1003.9,278.9); p.frameBounds = [rect]; (lib.Tween14 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFFFFF").ss(1,1,1).p("EhOQgVoMCchAAAMAAAArRMichAAAg"); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FFFFFF").s().p("EhOQAVpMAAAgrRMCchAAAMAAAArRg"); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-501.9,-139.4,1003.9,278.9); p.frameBounds = [rect]; (lib.Tween13 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFFFFF").ss(1,1,1).p("EhOQgVoMCchAAAMAAAArRMichAAAg"); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FFFFFF").s().p("EhOQAVpMAAAgrRMCchAAAMAAAArRg"); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-501.9,-139.4,1003.9,278.9); p.frameBounds = [rect]; (lib.Tween12 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0000_Logocopy3(); this.instance.parent = this; this.instance.setTransform(-69,-48); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-69,-48,138,96); p.frameBounds = [rect]; (lib.Tween10 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0005_Text2(); this.instance.parent = this; this.instance.setTransform(-94,-87.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-94,-87.5,188,175); p.frameBounds = [rect]; (lib.Tween9 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0005_Text2(); this.instance.parent = this; this.instance.setTransform(-94,-87.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-94,-87.5,188,175); p.frameBounds = [rect]; (lib.Tween8 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0006_BP(); this.instance.parent = this; this.instance.setTransform(-248.5,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-248.5,-125,497,250); p.frameBounds = [rect]; (lib.Tween7 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0006_BP(); this.instance.parent = this; this.instance.setTransform(-248.5,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-248.5,-125,497,250); p.frameBounds = [rect]; (lib.Tween6 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0007_BG2(); this.instance.parent = this; this.instance.setTransform(-485,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-485,-125,970,250); p.frameBounds = [rect]; (lib.Tween5 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0007_BG2(); this.instance.parent = this; this.instance.setTransform(-485,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-485,-125,970,250); p.frameBounds = [rect]; (lib.Tween4 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0008_Text(); this.instance.parent = this; this.instance.setTransform(-313,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-313,-125,626,250); p.frameBounds = [rect]; (lib.Tween3 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0008_Text(); this.instance.parent = this; this.instance.setTransform(-313,-125); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-313,-125,626,250); p.frameBounds = [rect]; (lib.Tween2 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0009_BP(); this.instance.parent = this; this.instance.setTransform(-115,-116.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-115,-116.5,230,233); p.frameBounds = [rect]; (lib.Tween1 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.CP_970x250_0009_BP(); this.instance.parent = this; this.instance.setTransform(-115,-116.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-115,-116.5,230,233); p.frameBounds = [rect]; (lib.mcVideo = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { var playerOptions = { videoURL: "https://adtima-video.zadn.vn/2018/12/99a6b3f2-6ea7-4300-9d9f-54976705748c.mp4", poster: "", canvas:canvas, box:this, autoplay: true, muted: true }; var aPlayer = function (obj){ var auto_resize = obj.auto_resize === true ? true : false; var is_zingtv = obj.is_zingtv === true ? true : false; var box = obj.box; var canvas = obj.canvas ? obj.canvas : window.canvas; var unmute_after_replay = obj.unmute_after_replay === true ? true : false; var click_through = obj.clickthrough ? obj.clickthrough : user_clickthrough; var videoURL = obj.videoURL ? obj.videoURL : ""; var posterURL = obj.poster ? obj.poster : ""; var offMute = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAnRJREFUSA3FVztoG0EQv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Ndu71eh/FYvFKsWNhR+AL0MQ9HMZccqvVes1ms9eKXwhHQlrgcR2ZA7G/6DdwY7FGo/GQy+XK/X6/o7tvwRN8wXIjO0IckFCtVu/y+fy9bEhdoTe2iQ8F97vah+cRmCKZyWTeCoXCo+wvAeIsmSauO0tTgFfkG/K92Yk7OvwIdAfW1ciuG1VsZLqxF0UhQ2BXNDkTomyXxMgGRsdGSKSA6clDEUToMA2I+JY4qxUKhUTECgReeEJGTAfe+PwDGAvlzBgrbskAAAAASUVORK5CYII="; var iconPause = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAY9JREFUOBGVk0tOBDEMRCfNd/hIXIEV1+O2XACxGrVYoO4e6A/13K4oYoclj51yueJOMuWwW2mi84QOW1MzRgR3bbvUgkZ7pxy3WEs2R+UQWBXxEKMJg3Qhv16W5W3bthHv+/5V2A1ObhwOXDk9saknQvBKfuy67lkxbF3XFyX3LDIPPDnHWOQnWiimUeEuixHGcWTXRxaZB54/cJf0FSHME93uy/13miaEYqLM2zLcSX4G9EQ+I86j2jzPTBrimdeaErg+o+KJEGIqCtV0Lp6UMyJvDS5YPWyKLCzGOky3VLHMXSJaJIT+7tIS/5X70/zweGDVSinggWVea4m7L8aj6IZlGIYPs0+n07vyHzzzKCWHq68vm+/j0LiBB/lTOo8Nca42rlcRDk7PKP9M/1I8+9NQZmfeBYVvOUYEx8gtSg6XWnw6QuzMmBQHOYUWn7XGwPxuwBCih9749/t8vDORBuOxo9bcsK+cZsQ8UbwTvtnekgWHGIKYOeTtJuQhRAES1pJ3ZG9yzRgxBBLYfgHHT6wsDj7HAQAAAABJRU5ErkJggg=="; var playOver = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAwCAYAAACWhbMrAAAAAXNSR0IArs4c6QAAAtdJREFUWAnFmc2LUlEYxmeapEmKPgaUIHFVA7NoMy3azRCRq2ox/0Fu3ApiBO2jhbvmb2hbQf+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9XHiP4OiFMXFxTYBAQERISEhryHPq8vNzT0JN93P8P5NixQkFlVFAmmBHJbZxejhp5lC5JYOuApKcCh9GFzfln5IHUPkFj7VQkqup8rlSGnbt2//Cq5L66mfiv50zuElgEw9J5tOXvjuDZ39oNPiiBgphJLrgoKCIIr4WKQJ7/SI3CNZGiXOs7HMNqUxGfNSHCGTYhDCkis0ijtkDAitYRLQGZwYRlZYZWoJCIoztYRNRF+M0HWQPgEzEX2BrJElgPiCrjelGPnLn/TdnpHpC+RMJAFvb29bpH9dZHHV9LGlifYRyBpZAqQr0hndcZn0hSx9bGnkPQRyRpYA6Yh0RToTPkE3snCNTU7rJ+hsI2Tjgeir/umDvrWEH514x8ZwhPa/lwAFjxSHkHvE7hP/9PE3oA0Hf9TwZEsAAAAASUVORK5CYII="; var muted = obj.muted === false ? false : true; var autoplay = obj.autoplay === false ? false : true; var played = true; canvas.video = this; var bounds = box.nominalBounds; var pt = box.localToGlobal(bounds.x, bounds.y); var tPer = pt.y / canvas.height; var lPer = pt.x / canvas.width; var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; var muteDiv; var m_Icon = 10; var w_Icon = 30; muteDiv = document.createElement('div'); muteDiv.id = "mute"; muteDiv.style.width = w_Icon + "px"; muteDiv.style.height = w_Icon + "px"; muteDiv.style.position = "absolute"; muteDiv.style.top = newT + newH - (w_Icon + m_Icon) + "px"; muteDiv.style.left = newL + m_Icon + "px"; muteDiv.style['object-fit'] = "cover"; muteDiv.style['background-image'] = "url(" + (muted ? offMute : onMute) + ")"; muteDiv.style['cursor'] = "pointer"; muteDiv.style['z-index'] = "49"; canvas.parentNode.appendChild(muteDiv); muteDiv.addEventListener("click", function(){ muted = !muted; fnMuteVideo(muted); } ); muteDiv.addEventListener("mouseover", player_over); var playDiv; var m_Play_Icon = 10; var w_Play_Icon = 18; playDiv = document.createElement('div'); playDiv.id = "play_pause_button"; playDiv.style.width = w_Play_Icon + "px"; playDiv.style.height = w_Play_Icon + "px"; playDiv.style.position = "absolute"; playDiv.style.top = newT + newH - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style.left = newL + newW - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style['object-fit'] = "cover"; playDiv.style['background-image'] = "url(" + (played ? iconPause : iconPlay) + ")"; playDiv.style['cursor'] = "pointer"; playDiv.style['z-index'] = "49"; canvas.parentNode.appendChild(playDiv); playDiv.addEventListener("click", toogle_video); function toogle_video(){ played = !played; if(played) { fnPlayVideo(); } else { fnPauseVideo(); } } playDiv.addEventListener("mouseover", player_over); var video = document.getElementById('video'); if(!video) { video = document.createElement('video'); if(autoplay) video.autoplay = true; video.src = videoURL; video.style.width = newW + "px"; video.style.height = newH + "px"; video.style.position = "absolute"; video.style.top = newT + "px"; video.style.left = newL + "px"; video.style['object-fit'] = "cover"; video.style.cursor = "pointer"; canvas.parentNode.appendChild(video); video.muted = muted; } video.addEventListener("click", function(){ if(autoplay || video.isPlay) { click_through(); } else { video.play(); video.isPlay = true; } } ); ///////////////////////////////////////////////////////////////// // config video tracking ///////////////////////////////////////////////////////////////// // tracking percent var trackerObj = {}; var ebVideoStarted = ('getCreativeViewUrl' in window)? getCreativeViewUrl() : ["#"]; var eb25Per_Played = ('getFirstQuatileUrl' in window) ? getFirstQuatileUrl() : ["#"]; var eb50Per_Played = ('getMidpointUrl' in window) ? getMidpointUrl() : ["#"]; var eb75Per_Played = ('getThirdQuatileUrl' in window) ? getThirdQuatileUrl() : ["#"]; var ebVideoFullPlay = ('getCompleteUrl' in window) ? getCompleteUrl() : ["#"]; // tracking second var timeTrackingArr = [ {time:3, link: ''}, {time:10, link: ''}, {time:30, link: ''}, {time:30, link: ('getProgressUrl' in window) ? getProgressUrl() : ["#"]} // pls don't change it :) ]; // sort on time //timeTrackingArr.sortOn('time', Array.DESCENDING); ///////////////////////////////////////////////////////////////// video.addEventListener('timeupdate', function () { var del = Math.round((video.currentTime / video.duration) * 100); var currentTime = video.currentTime; // tracking time (10s, 15s ...) for(var i = 0; i < timeTrackingArr.length; i++) { var trackVO = timeTrackingArr[i]; if(currentTime >= trackVO.time && trackVO.link && !trackVO.isTrack) { console.log("TRACKING: " + trackVO.time + '_Played'); loadTracker(trackVO.link); trackVO.isTrack = true; } } // tracing start, 25%, 50%, 75%, complete if(del == 100 && !trackerObj["ebVideoFullPlay"] && ebVideoFullPlay) // 100% { console.log("TRACKING: ebVideoFullPlay"); trackerObj["ebVideoFullPlay"] = true; loadTracker(ebVideoFullPlay); } else if (del >= 75 && !trackerObj["eb75Per_Played"] && eb75Per_Played) // 75% { console.log("TRACKING: eb75Per_Played"); trackerObj["eb75Per_Played"] = true; loadTracker(eb75Per_Played); } else if (del >= 50 && !trackerObj["eb50Per_Played"] && eb50Per_Played) // 50% { console.log("TRACKING: eb50Per_Played"); trackerObj["eb50Per_Played"] = true; loadTracker(eb50Per_Played); } else if (del >= 25 && !trackerObj["eb25Per_Played"] && eb25Per_Played) // 25% { console.log("TRACKING: eb25Per_Played"); trackerObj["eb25Per_Played"] = true; loadTracker(eb25Per_Played); } else if (del >= 0 && !trackerObj["ebVideoStarted"] && ebVideoStarted) // 0% { console.log("TRACKING: ebVideoStarted"); trackerObj["ebVideoStarted"] = true; loadTracker(ebVideoStarted); } }, 0); function loadTracker(param) { if(Array.isArray(param)) { for(var i = 0; i < param.length; i++) { iTracker(param[i]); } } else { iTracker(param); } } function iTracker(val) { if (val.length > 0) { var rnd = Math.floor(Math.random() * 10000000000); val = val.replace('[timestamp]', rnd); var img_tracking = document.createElement('img'); img_tracking.src = '' + val; img_tracking.style.height = '0px'; img_tracking.style.width = '0px'; img_tracking.style.display = 'none'; document.body.appendChild(img_tracking); console.log("iTracker: " + val); } } function clearTrackTag() { trackerObj["ebVideoStarted"] = false; trackerObj["eb25Per_Played"] = false; trackerObj["eb50Per_Played"] = false; trackerObj["eb75Per_Played"] = false; trackerObj["ebVideoFullPlay"] = false; for(var i = 0; i < timeTrackingArr.length; i++) { var trackVO = timeTrackingArr[i]; trackVO.isTrack = false; } } video.addEventListener('ended', function () { clearTrackTag(); muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; createEndFrame(); // off - Mashead if('fnCloseMasHead' in window) { window.fnCloseMasHead(); } else { try{ window.parent.fnCloseMasHead(); } catch(err) { console.log("Pls add fnCloseMasHead method!"); } } }, 0); var poster; function createPoster(posterURL) { if(!poster) { poster = document.createElement('div'); poster.id = "poster"; poster.style.width = newW + "px"; poster.style.height = newH + "px"; poster.style.position = "absolute"; poster.style.top = newT + "px"; poster.style.left = newL + "px"; poster.style['object-fit'] = "cover"; poster.style['background-size'] = "cover"; poster.style['cursor'] = "pointer"; poster.style['z-index'] = 999; if(posterURL) { poster.style['background-image'] = "url(" + posterURL + ")"; } else { poster.style['background-color'] = "rgba(0,0,0,0)"; } canvas.parentNode.appendChild(poster); var poster_icon = document.createElement('div'); poster_icon.id = "poster_icon"; poster_icon.style.width = "37px"; poster_icon.style.height = "48px"; poster_icon.style.position = "absolute"; poster_icon.style.top = "50%"; poster_icon.style.left = "50%"; poster_icon.style['margin-left'] = "-24px"; poster_icon.style['margin-top'] = "-18px"; poster_icon.style['object-fit'] = "cover"; poster_icon.style['background-size'] = "cover"; poster_icon.style['cursor'] = "pointer"; poster_icon.style['z-index'] = 222; poster_icon.style['background-image'] = "url(" + playOver + ")"; poster.appendChild(poster_icon); if(autoplay) { hide_all_controls(); } else { hide_controls(); } poster.onclick = function () { canvas.video.fnPlayVideo(); }; } } function hide_all_controls() { poster.style['display'] = "none"; muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } function show_controls() { poster.style['display'] = "none"; muteDiv.style['display'] = "block"; playDiv.style['display'] = "block"; } function hide_controls() { poster.style['display'] = "block"; muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } createPoster(posterURL); poster.addEventListener("mouseover", player_over); poster.addEventListener("mouseout", player_out); video.addEventListener("mouseover", player_over); video.addEventListener("mouseout", player_out); function player_over(){ if(poster.style['display'] === "none") { muteDiv.style['display'] = "block"; playDiv.style['display'] = "block"; } } function player_out(){ muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } var end_frame; function createEndFrame() { var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; end_frame = document.createElement('div'); end_frame.id = "end_frame"; end_frame.style.width = newW + "px"; end_frame.style.height = newH + "px"; end_frame.style.position = "absolute"; end_frame.style.top = newT + "px"; end_frame.style.left = newL + "px"; end_frame.style['object-fit'] = "cover"; end_frame.style['background-size'] = "cover"; end_frame.style['cursor'] = "pointer"; end_frame.style['z-index'] = 9999; canvas.parentNode.appendChild(end_frame); var overlay = document.createElement('div'); overlay.id = "overlay"; overlay.style.width = "100%"; overlay.style.height = "100%"; overlay.style.position = "absolute"; overlay.style['object-fit'] = "cover"; overlay.style['background-size'] = "cover"; overlay.style['cursor'] = "pointer"; overlay.style['background-color'] = "rgba(0, 0, 0, 0.7)"; overlay.style['z-index'] = 1; end_frame.appendChild(overlay); var replay = document.createElement('div'); replay.id = "replay"; replay.style.width = "77px"; replay.style.height = "30px"; replay.style.position = "absolute"; replay.style['margin-top'] = "-15px"; replay.style['margin-left'] = "-77px"; replay.style.top = "50%"; replay.style.right = "55%"; replay.style['object-fit'] = "cover"; replay.style['background-size'] = "cover"; replay.style['cursor'] = "pointer"; replay.style['background-image'] = "url(" + iconReplay + ")"; replay.style['z-index'] = 2; end_frame.appendChild(replay); var click_more = document.createElement('div'); click_more.id = "click_more"; click_more.style.width = "110px"; click_more.style.height = "30px"; click_more.style.position = "absolute"; click_more.style['margin-top'] = "-15px"; click_more.style.top = "50%"; click_more.style.left = "55%"; click_more.style['object-fit'] = "cover"; click_more.style['background-size'] = "cover"; click_more.style['cursor'] = "pointer"; click_more.style['background-image'] = "url(" + iconReadmore + ")"; click_more.style['z-index'] = 2; end_frame.appendChild(click_more); overlay.onclick = user_clickthrough; click_more.onclick = user_clickthrough; replay.onclick = user_click_replay; } function user_click_replay() { canvas.video.fnReplayVideo(); if(unmute_after_replay) canvas.video.fnMuteVideo(false); } function user_clickthrough() { if('getTargetUrl' in window) { var clickTAG = getTargetUrl(); window.open(clickTAG, "_blank"); } else { if('EB' in window) { EB.clickthrough(); console.log("Call EB.clickthrough()"); } else { console.log('Pls check getTargetUrl method!'); } } } ///////////////////////////////////////////////////// // Resize player ///////////////////////////////////////////////////// window.addEventListener("resize", onResizeHDL); function onResizeHDL() { var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; video.style.top = newT + 'px'; video.style.left = newL + 'px'; video.style.width = newW + "px"; video.style.height = newH + "px"; poster.style.top = newT + 'px'; poster.style.left = newL + 'px'; poster.style.width = newW + "px"; poster.style.height = newH + "px"; muteDiv.style.top = newT + newH - (w_Icon + m_Icon) + "px"; muteDiv.style.left = newL + m_Icon + "px"; playDiv.style.top = newT + newH - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style.left = newL + newW - (w_Play_Icon + m_Play_Icon) + "px"; if(end_frame) { end_frame.style.top = newT + 'px'; end_frame.style.left = newL + 'px'; end_frame.style.width = newW + "px"; end_frame.style.height = newH + "px"; } } ///////////////////////////////////////////////////// // Define public methods ///////////////////////////////////////////////////// this['fnReplayVideo'] = fnReplayVideo; this['fnMuteVideo'] = fnMuteVideo; this['fnVolume'] = fnVolume; this['fnPauseVideo'] = fnPauseVideo; this['fnPlayVideo'] = fnPlayVideo; function fnReplayVideo() { hide_all_controls(); clearTrackTag(); video.currentTime = 0; video.play(); if(end_frame) { canvas.parentNode.removeChild(end_frame); end_frame = null; } } function fnMuteVideo(val) { muted = val; if(video) video.muted = muted; if(muted) { muteDiv.style['background-image'] = "url(" + offMute + ")"; } else { muteDiv.style['background-image'] = "url(" + onMute + ")"; videoClickSound(); } } function videoClickSound() { if(window.parent.adtimaCallBack) { window.parent.adtimaCallBack.videoClickSound({ "muted": false }); console.log('called videoClickSound'); } else { console.log('can not call videoClickSound'); } } function fnVolume(val) { video.volume = val; } function fnPauseVideo() { played = false; video.pause(); playDiv.style['background-image'] = "url(" + iconPlay + ")"; hide_controls(); } function fnPlayVideo() { played = true; video.play(); playDiv.style['background-image'] = "url(" + iconPause + ")"; show_controls(); } } var player = new aPlayer(playerOptions); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.shape = new cjs.Shape(); this.shape.graphics.f("rgba(0,0,153,0.498)").s().p("A88QTMAAAgglMA55AAAMAAAAglg"); this.shape.setTransform(744.3,104.3); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcVideo, rect = new cjs.Rectangle(559,0,370.7,208.5), [rect]); (lib.mcStop = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { // Define stop all animation stopAnimation(this.parent); console.log("Stop All:"); function stopAnimation(mc){ if (!mc) return; if ("stop" in mc) mc.stop(); var i; for (i = 0; i < mc.numChildren; i++){ var child = mc.getChildAt(i); stopAnimation(child); } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // JS this.shape = new cjs.Shape(); this.shape.graphics.f("#FF0000").s().p("AhFBGQgegcAAgqQAAgpAegcQAcgeApAAQAqAAAcAeQAeAcAAApQAAAqgeAcQgcAegqAAQgpAAgcgeg"); this.shape.setTransform(10,10); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcStop, rect = new cjs.Rectangle(0,0,20,20), [rect]); (lib.clickTAG = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { var self = this; self.addEventListener('click', clickTAG); self.cursor = 'pointer'; function clickTAG(evt) { if(evt.nativeEvent && evt.nativeEvent.button==2){ evt.preventDefault(); } else { if('getTargetUrl' in window) { var clickTAG = getTargetUrl(); window.open(clickTAG, "_blank"); } else { console.log('Pls check getTargetUrl method!'); } } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.shape = new cjs.Shape(); this.shape.graphics.f("#000000").s().p("A3bTiMAAAgnDMAu3AAAMAAAAnDg"); this.shape.setTransform(150,125); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.clickTAG, rect = new cjs.Rectangle(0,0,300,250), [rect]); (lib.mcMain = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_329 = function() { this.stop(); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).wait(329).call(this.frame_329).wait(1)); // script&mcStop this.instance = new lib.mcStop(); this.instance.parent = this; this.instance.setTransform(994.5,2.5,1,1,0,0,0,2.5,2.5); this.instance._off = true; this.timeline.addTween(cjs.Tween.get(this.instance).wait(329).to({_off:false},0).wait(1)); // mcVideo this.instance_1 = new lib.mcVideo(); this.instance_1.parent = this; this.instance_1.setTransform(201,130.6,1,1,0,0,0,186,104.6); this.instance_1.alpha = 0.012; this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(330)); // clickTAG this.instance_2 = new lib.clickTAG(); this.instance_2.parent = this; this.instance_2.setTransform(485,125,3.233,1,0,0,0,150,125); this.instance_2.alpha = 0.012; this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(330)); // Layer_12 this.instance_3 = new lib.Tween12("synched",0); this.instance_3.parent = this; this.instance_3.setTransform(69,48); this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(330)); // Layer_13 this.instance_4 = new lib.Tween13("synched",0); this.instance_4.parent = this; this.instance_4.setTransform(486.5,121.7); this.instance_4.alpha = 0; this.instance_4._off = true; this.instance_5 = new lib.Tween14("synched",0); this.instance_5.parent = this; this.instance_5.setTransform(486.5,121.7); this.instance_5._off = true; this.instance_6 = new lib.Tween15("synched",0); this.instance_6.parent = this; this.instance_6.setTransform(486.5,121.7); this.instance_6.alpha = 0; this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_4}]},117).to({state:[{t:this.instance_5}]},7).to({state:[{t:this.instance_6}]},7).wait(199)); this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(117).to({_off:false},0).to({_off:true,alpha:1},7).wait(206)); this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(117).to({_off:false},7).to({_off:true,alpha:0},7).wait(199)); // Layer_11 this.instance_7 = new lib.Tween20("synched",0); this.instance_7.parent = this; this.instance_7.setTransform(423.5,191.5); this.instance_7.alpha = 0; this.instance_7._off = true; this.instance_8 = new lib.Tween21("synched",0); this.instance_8.parent = this; this.instance_8.setTransform(423.5,215.5); this.instance_8._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(145).to({_off:false},0).to({_off:true,y:215.5,alpha:1},15,cjs.Ease.get(1)).wait(170)); this.timeline.addTween(cjs.Tween.get(this.instance_8).wait(145).to({_off:false},15,cjs.Ease.get(1)).wait(14).to({startPosition:0},0).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:0.95,scaleY:0.95},8).to({scaleX:1.05,scaleY:1.05},7).to({scaleX:1,scaleY:1},8).wait(24).to({startPosition:0},0).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:0.95,scaleY:0.95},8).to({scaleX:1.05,scaleY:1.05},7).to({scaleX:1,scaleY:1},8).wait(29).to({startPosition:0},0).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:0.95,scaleY:0.95},8).to({scaleX:1.05,scaleY:1.05},7).to({scaleX:1,scaleY:1},8).wait(10)); // Layer_10 this.instance_9 = new lib.Tween18("synched",0); this.instance_9.parent = this; this.instance_9.setTransform(423,102,1.2,1.2); this.instance_9.alpha = 0; this.instance_9._off = true; this.instance_10 = new lib.Tween19("synched",0); this.instance_10.parent = this; this.instance_10.setTransform(423,102); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_9}]},136).to({state:[{t:this.instance_10}]},17).wait(177)); this.timeline.addTween(cjs.Tween.get(this.instance_9).wait(136).to({_off:false},0).to({_off:true,scaleX:1,scaleY:1,alpha:1},17,cjs.Ease.get(1)).wait(177)); // Layer_9 this.instance_11 = new lib.Tween16("synched",0); this.instance_11.parent = this; this.instance_11.setTransform(295.7,125); this.instance_11.alpha = 0; this.instance_11._off = true; this.instance_12 = new lib.Tween17("synched",0); this.instance_12.parent = this; this.instance_12.setTransform(332.5,125); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_11}]},129).to({state:[{t:this.instance_12}]},18).wait(183)); this.timeline.addTween(cjs.Tween.get(this.instance_11).wait(129).to({_off:false},0).to({_off:true,x:332.5,alpha:1},18,cjs.Ease.get(1)).wait(183)); // BG3 this.instance_13 = new lib.CP_970x250_0004_BG3(); this.instance_13.parent = this; this.instance_13._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_13).wait(124).to({_off:false},0).wait(206)); // Layer_7 this.instance_14 = new lib.Tween9("synched",0); this.instance_14.parent = this; this.instance_14.setTransform(308,106.5,1.5,1.5); this.instance_14.alpha = 0; this.instance_14._off = true; this.instance_15 = new lib.Tween10("synched",0); this.instance_15.parent = this; this.instance_15.setTransform(308,106.5,0.95,0.95); this.instance_15._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_14).wait(62).to({_off:false},0).to({_off:true,scaleX:0.95,scaleY:0.95,alpha:1},12).wait(256)); this.timeline.addTween(cjs.Tween.get(this.instance_15).wait(62).to({_off:false},12).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:1,scaleY:1},8).wait(240)); // Layer_6 this.instance_16 = new lib.Tween7("synched",0); this.instance_16.parent = this; this.instance_16.setTransform(298.9,125); this.instance_16.alpha = 0; this.instance_16._off = true; this.instance_17 = new lib.Tween8("synched",0); this.instance_17.parent = this; this.instance_17.setTransform(248.5,125); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_16}]},53).to({state:[{t:this.instance_17}]},16).wait(261)); this.timeline.addTween(cjs.Tween.get(this.instance_16).wait(53).to({_off:false},0).to({_off:true,x:248.5,alpha:1},16,cjs.Ease.get(1)).wait(261)); // BG2 this.instance_18 = new lib.Tween5("synched",0); this.instance_18.parent = this; this.instance_18.setTransform(485,125); this.instance_18.alpha = 0; this.instance_18._off = true; this.instance_19 = new lib.Tween6("synched",0); this.instance_19.parent = this; this.instance_19.setTransform(485,125); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_18}]},45).to({state:[{t:this.instance_19}]},14).wait(271)); this.timeline.addTween(cjs.Tween.get(this.instance_18).wait(45).to({_off:false},0).to({_off:true,alpha:1},14,cjs.Ease.get(1)).wait(271)); // Layer_4 this.instance_20 = new lib.Tween3("synched",0); this.instance_20.parent = this; this.instance_20.setTransform(313,125,0.5,0.5); this.instance_20.alpha = 0; this.instance_20._off = true; this.instance_21 = new lib.Tween4("synched",0); this.instance_21.parent = this; this.instance_21.setTransform(313,125); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_20}]},9).to({state:[{t:this.instance_21}]},16).wait(305)); this.timeline.addTween(cjs.Tween.get(this.instance_20).wait(9).to({_off:false},0).to({_off:true,scaleX:1,scaleY:1,alpha:1},16,cjs.Ease.get(1)).wait(305)); // Layer_3 this.instance_22 = new lib.Tween1("synched",0); this.instance_22.parent = this; this.instance_22.setTransform(147.4,133.5); this.instance_22.alpha = 0; this.instance_22._off = true; this.instance_23 = new lib.Tween2("synched",0); this.instance_23.parent = this; this.instance_23.setTransform(181,133.5); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_22}]},2).to({state:[{t:this.instance_23}]},17).wait(311)); this.timeline.addTween(cjs.Tween.get(this.instance_22).wait(2).to({_off:false},0).to({_off:true,x:181,alpha:1},17,cjs.Ease.get(1)).wait(311)); // BG1 this.instance_24 = new lib.CP_970x250_0010_BG1(); this.instance_24.parent = this; this.timeline.addTween(cjs.Tween.get(this.instance_24).wait(330)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,970,250); p.frameBounds = [rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(0,-24.7,970,274.8), new cjs.Rectangle(0,-20.7,970,270.7), new cjs.Rectangle(0,-16.7,970,266.7), new cjs.Rectangle(0,-12.7,970,262.7), new cjs.Rectangle(0,-8.7,970,258.7), new cjs.Rectangle(0,-4.6,970,254.7), new cjs.Rectangle(0,-0.6,970,250.7), rect=new cjs.Rectangle(0,0,970,250), rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect=new cjs.Rectangle(-15.4,-17.8,1003.9,278.9), rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(-36.8,-17.8,1025.3,278.9), new cjs.Rectangle(-32.8,-17.8,1021.3,278.9), new cjs.Rectangle(-29.1,-17.8,1017.6,278.9), new cjs.Rectangle(-25.5,-17.8,1014,278.9), new cjs.Rectangle(-22.2,-17.8,1010.7,278.9), new cjs.Rectangle(-19.2,-17.8,1007.7,278.9), new cjs.Rectangle(-16.3,-17.8,1004.8,278.9), rect=new cjs.Rectangle(-15.4,-17.8,1003.9,278.9), rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(-15.4,-17.8,1027.4,278.9)]; // stage content: (lib.z_JS_ZingNews_970x250 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { //////////////////////////////////////////////////////////// // Create CSS For Banner //////////////////////////////////////////////////////////// // Create the