' +
'',
videozplayer_25d211,
videoAds1Conf = {
"poster": "{poster_video}",
"stopOtherOnPlay": true,
"parentVid": parentVid,
"skipAble": true,
"skipTime": 5000,
/*CDN_DOMAIN_HLS*/
"skipAdsBtnContent": "Skip Ad",
"showAdVol": true,
"VIDEOID": "zplayer_25d211",
/*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%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26correlator%3D1598235866"
,"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%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26correlator%3D1598235866"
,"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%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26description_url%3Dhttp%253A%252F%252Fkhampha.vn%252Fnha-dep%252Fhoa-ra-nhung-hop-nha-chat-nhat-the-gioi-chi-bang-quan-tai-lai-o-hong-kong-hoa-le-c26a528677.html%26correlator%3D1598235866"
,"midTime": 10
/*FALL_BACK*/
/*PLAYLIST_ITEM*/
/*DRM_VIDEO*/
//{set_highlight_zplayer_html5}
}
if(document.getElementById(parentVid).innerHTML.trim() == ""){
loadVidzplayer_25d211();
vidLoaded = true;
}
function loadVidzplayer_25d211(){
dynamicId = new Date().valueOf();
vidId = "my-video-multiple1_"+dynamicId;
videoAds1Conf.VIDEOID = vidId;
if(vidLoaded==true){
videoAds1Conf.viewportAutoPlay = false;
}
var newVideStr = videoElmStr.replace(/__VIDIDzplayer_25d211__/g, vidId);
document.getElementById(parentVid).innerHTML = newVideStr;
videozplayer_25d211 = new videoObj(videoAds1Conf);
playerEventszplayer_25d211(videozplayer_25d211);
if(!document.getElementById(parentVid).classList.contains(parentVid+"_loaded")){
document.getElementById(parentVid).className += " "+parentVid+"_loaded";
}
videozplayer_25d211.player.on("videoended", function(){
videoAds1Conf.viewportAutoPlay = false;
var videoConf = videoAds1Conf;
videoConf.viewportAutoPlay = false;
var element = document.getElementById(videoConf.VIDEOID);
element.parentNode.removeChild(element);
videozplayer_25d211 = undefined;
loadVidzplayer_25d211();
});
}
function playerEventszplayer_25d211(videozplayer_25d211){
videozplayer_25d211.player.on("onPlay", function(name) {
//console.log("listener onPlay: ");
var docPlayVideo_zplayer_25d211 = document.getElementById("zplayer_25d211_ga");
if(docPlayVideo_zplayer_25d211){
docPlayVideo_zplayer_25d211.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_25d211")){
document.getElementById("tracking_play_video_ben_thu_bazplayer_25d211").innerHTML = '
';
}
});
// Begin 12-12-2018 trungcq XLCYCMHENG_33549_xu_ly_scroll_to_top
videozplayer_25d211.player.on("playerMinimized", function(name) {
// console.log("Listener playerMinimized: ");
if ($("#arrowPageUp").length) {
$("#arrowPageUp").css("bottom","157px");
}
});
videozplayer_25d211.player.on("playerUnMinimized", function(name) {
// console.log("Listener playerUnMinimized: ");
if ($("#arrowPageUp").length) {
$("#arrowPageUp").css("bottom","20px");
}
});
videozplayer_25d211.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_25d211.player.on("timeupdate", function () {
if(v_load_recommend_boxzplayer_25d211 && typeof(v_thoi_luong_hien_thi) != "undefined" && v_thoi_luong_hien_thi != ""){
try{
var v_time_current = videozplayer_25d211.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_25d211");
// Gắn HTML vào chuỗi
if(v_html_recomend !=""){
// Nếu tồn tại video highlight
if ($("#vjs-marker-tableinfo-zplayer_25d211").length) {
$("#vjs-marker-tableinfo-zplayer_25d211").after(v_html_recomend);
} else {
if ($("#zplayer_25d211_container").length) {
$("#zplayer_25d211_container").after(v_html_recomend);
}
}
// Hiển thị dạng slide
if ($("#box_recommend_zplayer_25d211").length) {
$("#box_recommend_zplayer_25d211").show(1000);
setTimeout(function(){
create_slide_page_number_recommend_video_json("swiper_recommend_v2018zplayer_25d211", "swpier_container_zplayer_25d211","swiper_active_slide_zplayer_25d211", "pagination-zplayer_25d211","wrapper_zplayer_25d211",v_total_page_recommend, "swiper-slide slide_zplayer_25d211", "prvVid_recommendzplayer_25d211", "nxtVid_recommendzplayer_25d211");
$("#box_recommend_zplayer_25d211").css("height", "");
}, 900);
}
}
}
// End 07-11-2018 trungcq XLCYCMHENG_33231_toi_uu_load_recommend_video_json
v_load_recommend_boxzplayer_25d211 = false;
}
}
}catch(e){
console.log(["Errors", e]);
}
}
});
videozplayer_25d211.player.on("onStop", function(name) {
//console.log("listener onStop: ");
});
}
videoAdsInitzplayer_25d211 = 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_25d211VpElm = document.getElementById( "zplayer_25d211" );
var viszplayer_25d211 = (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_25d211 = document.getElementById("v-24hContainer_zplayer_25d211");
document.addEventListener("DOMContentLoaded", function () {
if(videoAds1Elmzplayer_25d211){
var videoAdsInitzplayer_25d211 = false;
var checkTabActivezplayer_25d211 = setInterval(function () {
if (inViewport(videoAds1Elmzplayer_25d211) && viszplayer_25d211() && !videoAdsInitzplayer_25d211 && typeof(window.videojs) !== "undefined" && typeof(google) !== "undefined") {
initvideozplayer_25d211();
clearInterval(checkTabActivezplayer_25d211);
}
}, 100);
}
}, false);
//]]>