' +
'',
videozplayer_194911,
videoAds1Conf = {
"poster": "{poster_video}",
"stopOtherOnPlay": true,
"parentVid": parentVid,
"skipAble": true,
"skipTime": 5000,
/*CDN_DOMAIN_HLS*/
"skipAdsBtnContent": "Skip Ad",
"showAdVol": true,
"VIDEOID": "zplayer_194911",
/*MINI_VIDEO*/
"vidVol" : "0.4",
"prerollTimeEnd" : 31,
"midrollTimeEnd" : 15,
"postrollTimeEnd" : 30,
"skipAdsBtnPos": "bottom-left",
"userAgent": "Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1; .NET CLR 1.0.2914)",
"adLoadTimeout" : 8000
,"vastUri": "https%3A%2F%2Fpubads.g.doubleclick.net%2Fgampad%2Fads%3Fsz%3D528x297%26iu%3D%2F124557882%2Fkhampha%2Fdesktop%2Fall_cate%2Fpreroll%26impl%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast%26unviewed_position_start%3D1%26url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26correlator%3D1598522718"
,"vastUriPost" : "https%3A%2F%2Fpubads.g.doubleclick.net%2Fgampad%2Fads%3Fsz%3D528x297%26iu%3D%2F124557882%2Fkhampha%2Fdesktop%2Fall_cate%2Fpostroll%26impl%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast%26unviewed_position_start%3D1%26url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26correlator%3D1598522718"
,"vastUriMid" : "https%3A%2F%2Fpubads.g.doubleclick.net%2Fgampad%2Fads%3Fsz%3D528x60%26iu%3D%2F124557882%2Fkhampha%2Fdesktop%2Fall_cate%2Foverlay%26impl%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast%26unviewed_position_start%3D1%26url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fbep%252Fcac-dau-bep-noi-tieng-van-dung-10-meo-nau-an-don-gian-nay-ma-nhieu-chi-em-khong-biet-c39a509810.html%26correlator%3D1598522718"
,"midTime": 10
/*FALL_BACK*/
/*PLAYLIST_ITEM*/
/*DRM_VIDEO*/
//{set_highlight_zplayer_html5}
}
if(document.getElementById(parentVid).innerHTML.trim() == ""){
loadVidzplayer_194911();
vidLoaded = true;
}
function loadVidzplayer_194911(){
dynamicId = new Date().valueOf();
vidId = "my-video-multiple1_"+dynamicId;
videoAds1Conf.VIDEOID = vidId;
if(vidLoaded==true){
videoAds1Conf.viewportAutoPlay = false;
}
var newVideStr = videoElmStr.replace(/__VIDIDzplayer_194911__/g, vidId);
document.getElementById(parentVid).innerHTML = newVideStr;
videozplayer_194911 = new videoObj(videoAds1Conf);
playerEventszplayer_194911(videozplayer_194911);
if(!document.getElementById(parentVid).classList.contains(parentVid+"_loaded")){
document.getElementById(parentVid).className += " "+parentVid+"_loaded";
}
videozplayer_194911.player.on("videoended", function(){
videoAds1Conf.viewportAutoPlay = false;
var videoConf = videoAds1Conf;
videoConf.viewportAutoPlay = false;
var element = document.getElementById(videoConf.VIDEOID);
element.parentNode.removeChild(element);
videozplayer_194911 = undefined;
loadVidzplayer_194911();
});
}
function playerEventszplayer_194911(videozplayer_194911){
videozplayer_194911.player.on("onPlay", function(name) {
//console.log("listener onPlay: ");
var docPlayVideo_zplayer_194911 = document.getElementById("zplayer_194911_ga");
if(docPlayVideo_zplayer_194911){
docPlayVideo_zplayer_194911.innerHTML = '
';
}
// begin 5/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc
// end 5/10/2017 TuyenNT xu_ly_gan_ga_video_theo_loai_giai_dau_frontend_pc
//Begin 14-07-2017 : Thangnb tracking_google_tag_manager_video
//End 14-07-2017 : Thangnb tracking_google_tag_manager_video
if(document.getElementById("tracking_play_video_ben_thu_bazplayer_194911")){
document.getElementById("tracking_play_video_ben_thu_bazplayer_194911").innerHTML = '
';
}
});
// Begin 12-12-2018 trungcq XLCYCMHENG_33549_xu_ly_scroll_to_top
videozplayer_194911.player.on("playerMinimized", function(name) {
// console.log("Listener playerMinimized: ");
if ($("#arrowPageUp").length) {
$("#arrowPageUp").css("bottom","157px");
}
});
videozplayer_194911.player.on("playerUnMinimized", function(name) {
// console.log("Listener playerUnMinimized: ");
if ($("#arrowPageUp").length) {
$("#arrowPageUp").css("bottom","20px");
}
});
videozplayer_194911.player.on("miniPlayerClosed", function(name) {
// console.log("Listener miniPlayerClosed: ");
if ($("#arrowPageUp").length) {
$("#arrowPageUp").css("bottom","20px");
}
});
// End 12-12-2018 trungcq XLCYCMHENG_33549_xu_ly_scroll_to_top
videozplayer_194911.player.on("timeupdate", function () {
if(v_load_recommend_boxzplayer_194911 && typeof(v_thoi_luong_hien_thi) != "undefined" && v_thoi_luong_hien_thi != ""){
try{
var v_time_current = videozplayer_194911.player.currentTime();
if(v_time_current > 0){
if(v_time_current >= v_thoi_luong_hien_thi){
// Begin 07-11-2018 trungcq XLCYCMHENG_33231_toi_uu_load_recommend_video_json
if(typeof v_object_recomend_video != "undefined" && parseInt(v_object_recomend_video.length) > 0){
var v_total_page_recommend =0;
v_total_page_recommend = parseInt(Math.ceil(parseInt(v_object_recomend_video.length)/parseInt(v_object_recomend_video[0]["c_number_items"])));
// Tao HTML video recommend
var v_html_recomend = tao_html_recommend_video_tu_object(v_object_recomend_video,"zplayer_194911");
// Gắn HTML vào chuỗi
if(v_html_recomend !=""){
// Nếu tồn tại video highlight
if ($("#vjs-marker-tableinfo-zplayer_194911").length) {
$("#vjs-marker-tableinfo-zplayer_194911").after(v_html_recomend);
} else {
if ($("#zplayer_194911_container").length) {
$("#zplayer_194911_container").after(v_html_recomend);
}
}
// Hiển thị dạng slide
if ($("#box_recommend_zplayer_194911").length) {
$("#box_recommend_zplayer_194911").show(1000);
setTimeout(function(){
create_slide_page_number_recommend_video_json("swiper_recommend_v2018zplayer_194911", "swpier_container_zplayer_194911","swiper_active_slide_zplayer_194911", "pagination-zplayer_194911","wrapper_zplayer_194911",v_total_page_recommend, "swiper-slide slide_zplayer_194911", "prvVid_recommendzplayer_194911", "nxtVid_recommendzplayer_194911");
$("#box_recommend_zplayer_194911").css("height", "");
}, 900);
}
}
}
// End 07-11-2018 trungcq XLCYCMHENG_33231_toi_uu_load_recommend_video_json
v_load_recommend_boxzplayer_194911 = false;
}
}
}catch(e){
console.log(["Errors", e]);
}
}
});
videozplayer_194911.player.on("onStop", function(name) {
//console.log("listener onStop: ");
});
}
videoAdsInitzplayer_194911 = true;
}
// Ga video load luôn được chạy
function inViewport( element ){
// Get the elements position relative to the viewport
var bb = element.getBoundingClientRect();
// Check if the element is outside the viewport
// Then invert the returned value because you want to know the opposite
return !(bb.top > innerHeight || bb.bottom < 0);
}
var zplayer_194911VpElm = document.getElementById( "zplayer_194911" );
var viszplayer_194911 = (function () {
var stateKey, eventKey, keys = {
hidden: "visibilitychange",
webkitHidden: "webkitvisibilitychange",
mozHidden: "mozvisibilitychange",
msHidden: "msvisibilitychange"
};
for (stateKey in keys) {
if (stateKey in document) {
eventKey = keys[stateKey];
break;
}
}
return function (c) {
if (c) document.addEventListener(eventKey, c);
return !document[stateKey];
}
})();
var videoAds1Elmzplayer_194911 = document.getElementById("v-24hContainer_zplayer_194911");
document.addEventListener("DOMContentLoaded", function () {
if(videoAds1Elmzplayer_194911){
var videoAdsInitzplayer_194911 = false;
var checkTabActivezplayer_194911 = setInterval(function () {
if (inViewport(videoAds1Elmzplayer_194911) && viszplayer_194911() && !videoAdsInitzplayer_194911 && typeof(window.videojs) !== "undefined" && typeof(google) !== "undefined") {
initvideozplayer_194911();
clearInterval(checkTabActivezplayer_194911);
}
}, 100);
}
}, false);
//]]>