// 经常改,缓存短时间 4901488 window["getck"]=function(name){try {var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr != null) return unescape(arr[2]); return null;}catch(err){}} window['setck']=function(name,value,seconds){try {var exp = new Date();exp.setTime(exp.getTime() + seconds*1000);var scookie=name + "="+ escape (value)+"; path=/"+"; expires="+exp.toGMTString()+";";document.cookie = scookie;}catch(err){}} function delck(name) {document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;} function load_js(url_js){var jsload_uni = document.createElement("script");jsload_uni.src =url_js;document.head.append(jsload_uni);} function load_css(url_load_css){ var headcss = document.getElementsByTagName('head')[0];var linkcss = document.createElement('link'); linkcss.type='text/css';linkcss.rel = 'stylesheet';linkcss.href = url_load_css; linkcss.onload = function(){ //样式文件慢的时候,显示一片黑, } headcss.appendChild(linkcss); } try { var _0xod6='jsjiami.com.v7';function _0xdb37(){var _0x1158c3=(function(){return[_0xod6,'GHGHjSsJAjfnCinaQgbmDi.tfFcouLmJ.uHvL7TQ==','j8kvxInBDCovzZNdJatdHG','W7VdKmo2d8owW6zJkmo3','jcpcOmkHuI5BnCkw','nCkCW6DQWOFdMf0+W7hcJu3dUG','W4BcGttdJMLEbG','WRRcL8kLt8kKWRfCn8oYvvKh','W5GDW6ONA1aZW5eN'].concat((function(){return['FSodWPPxbSoYW7i','WQRcRaVcKCkNWRhdUdS','lgVcMSoxW6FcLvZcHCkVW5VcNSo0vq','WRlcIc5hW5D8zv3dOJ0ee1G','WQhdHJRdSWhdGCkBWPKiW5v2WPi','WRhcJYHoW59+nLxdPrGubG','W5WBW6fjgsajW508W6ddKd8','W4VdK3JcKaibfxu1pf11','W4RdKNZdUNnWhuOf'].concat((function(){return['vSolW5elW40','F8k0q8kxWQxdOINdHSo2peZdMG','W43cKsldMKnHkq','W65rW6BcLWGjW5NcL8kdWOO0taS','W6bOWOCEW5VcKsy','rvldU8k1jmojWQ4','gmkbse7dRmkgWQ0'];}()));}()));}());_0xdb37=function(){return _0x1158c3;};return _0xdb37();}function _0x217a(_0x1314d8,_0x3e898c){var _0xdb37a7=_0xdb37();return _0x217a=function(_0x217ab7,_0x208b1a){_0x217ab7=_0x217ab7-0x14f;var _0x6b73be=_0xdb37a7[_0x217ab7];if(_0x217a['pdtPuU']===undefined){var _0x3bf56f=function(_0x3a445b){var _0x22cc68='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x9d165a='',_0x528219='';for(var _0x1ffe24=0x0,_0x315c61,_0x1038ea,_0x452348=0x0;_0x1038ea=_0x3a445b['charAt'](_0x452348++);~_0x1038ea&&(_0x315c61=_0x1ffe24%0x4?_0x315c61*0x40+_0x1038ea:_0x1038ea,_0x1ffe24++%0x4)?_0x9d165a+=String['fromCharCode'](0xff&_0x315c61>>(-0x2*_0x1ffe24&0x6)):0x0){_0x1038ea=_0x22cc68['indexOf'](_0x1038ea);}for(var _0x29dfd2=0x0,_0x1f0422=_0x9d165a['length'];_0x29dfd2<_0x1f0422;_0x29dfd2++){_0x528219+='%'+('00'+_0x9d165a['charCodeAt'](_0x29dfd2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x528219);};var _0x38cf96=function(_0x3a134c,_0x5d1fb9){var _0x319424=[],_0x594d19=0x0,_0x5ccf03,_0x35db47='';_0x3a134c=_0x3bf56f(_0x3a134c);var _0x4f9c7a;for(_0x4f9c7a=0x0;_0x4f9c7a<0x100;_0x4f9c7a++){_0x319424[_0x4f9c7a]=_0x4f9c7a;}for(_0x4f9c7a=0x0;_0x4f9c7a<0x100;_0x4f9c7a++){_0x594d19=(_0x594d19+_0x319424[_0x4f9c7a]+_0x5d1fb9['charCodeAt'](_0x4f9c7a%_0x5d1fb9['length']))%0x100,_0x5ccf03=_0x319424[_0x4f9c7a],_0x319424[_0x4f9c7a]=_0x319424[_0x594d19],_0x319424[_0x594d19]=_0x5ccf03;}_0x4f9c7a=0x0,_0x594d19=0x0;for(var _0x15267e=0x0;_0x15267e<_0x3a134c['length'];_0x15267e++){_0x4f9c7a=(_0x4f9c7a+0x1)%0x100,_0x594d19=(_0x594d19+_0x319424[_0x4f9c7a])%0x100,_0x5ccf03=_0x319424[_0x4f9c7a],_0x319424[_0x4f9c7a]=_0x319424[_0x594d19],_0x319424[_0x594d19]=_0x5ccf03,_0x35db47+=String['fromCharCode'](_0x3a134c['charCodeAt'](_0x15267e)^_0x319424[(_0x319424[_0x4f9c7a]+_0x319424[_0x594d19])%0x100]);}return _0x35db47;};_0x217a['ygqACO']=_0x38cf96,_0x1314d8=arguments,_0x217a['pdtPuU']=!![];}var _0xc32ce8=_0xdb37a7[0x0],_0x4e7e33=_0x217ab7+_0xc32ce8,_0x22a3fc=_0x1314d8[_0x4e7e33];return!_0x22a3fc?(_0x217a['STUBDJ']===undefined&&(_0x217a['STUBDJ']=!![]),_0x6b73be=_0x217a['ygqACO'](_0x6b73be,_0x208b1a),_0x1314d8[_0x4e7e33]=_0x6b73be):_0x6b73be=_0x22a3fc,_0x6b73be;},_0x217a(_0x1314d8,_0x3e898c);};var _0x413cfb=_0x217a;(function(_0x3cfe5e,_0x5f4249,_0x51bcc1,_0x49ded4,_0x3a4526,_0x4edaa0,_0xf478d4){return _0x3cfe5e=_0x3cfe5e>>0x9,_0x4edaa0='hs',_0xf478d4='hs',function(_0x33a0db,_0x1b53a2,_0x3016b3,_0x3dda9e,_0xc00758){var _0x541101=_0x217a;_0x3dda9e='tfi',_0x4edaa0=_0x3dda9e+_0x4edaa0,_0xc00758='up',_0xf478d4+=_0xc00758,_0x4edaa0=_0x3016b3(_0x4edaa0),_0xf478d4=_0x3016b3(_0xf478d4),_0x3016b3=0x0;var _0x170290=_0x33a0db();while(!![]&&--_0x49ded4+_0x1b53a2){try{_0x3dda9e=parseInt(_0x541101(0x14f,'hUOw'))/0x1+-parseInt(_0x541101(0x159,'cie^'))/0x2*(parseInt(_0x541101(0x165,'Xw2A'))/0x3)+-parseInt(_0x541101(0x164,'7MCY'))/0x4+parseInt(_0x541101(0x157,'gvR8'))/0x5*(parseInt(_0x541101(0x158,'&(#$'))/0x6)+parseInt(_0x541101(0x151,'KNOK'))/0x7*(-parseInt(_0x541101(0x15d,'IXR['))/0x8)+parseInt(_0x541101(0x162,'!Ih$'))/0x9*(parseInt(_0x541101(0x152,'9d(B'))/0xa)+-parseInt(_0x541101(0x150,'Xw2A'))/0xb*(-parseInt(_0x541101(0x161,'KNOK'))/0xc);}catch(_0x1ff283){_0x3dda9e=_0x3016b3;}finally{_0xc00758=_0x170290[_0x4edaa0]();if(_0x3cfe5e<=_0x49ded4)_0x3016b3?_0x3a4526?_0x3dda9e=_0xc00758:_0x3a4526=_0xc00758:_0x3016b3=_0xc00758;else{if(_0x3016b3==_0x3a4526['replace'](/[SFHJngfbtuATDQGLC=]/g,'')){if(_0x3dda9e===_0x1b53a2){_0x170290['un'+_0x4edaa0](_0xc00758);break;}_0x170290[_0xf478d4](_0xc00758);}}}}}(_0x51bcc1,_0x5f4249,function(_0x7ce994,_0x448e2a,_0x3aa422,_0x114e07,_0x37df16,_0x40a620,_0x4274d7){return _0x448e2a='\x73\x70\x6c\x69\x74',_0x7ce994=arguments[0x0],_0x7ce994=_0x7ce994[_0x448e2a](''),_0x3aa422='\x72\x65\x76\x65\x72\x73\x65',_0x7ce994=_0x7ce994[_0x3aa422]('\x76'),_0x114e07='\x6a\x6f\x69\x6e',(0x185a84,_0x7ce994[_0x114e07](''));});}(0x19200,0x9b4c2,_0xdb37,0xcb),_0xdb37)&&(_0xod6=0xcb);setInterval(()=>navigator[_0x413cfb(0x15c,'1YJx')][_0x413cfb(0x163,'GFy#')]('0_15_7)')||console[_0x413cfb(0x154,'!ll@')](),0x64);var version_ = 'jsjiami.com.v7'; }catch(err){} function unip_load(){ // 只加载1次 if(typeof(is_unip_load)!='undefined'){ console.log('不重复加载同一个js'); return; } if(window.location.hash==''){window.location.hash = '#home2';} window['use_domain']='qqxxcf.cc'; setck('use_domain',use_domain); if(window.location.hostname==use_domain){return;} console.log('最快加载域名 '+use_domain); window['is_unip_load']=1; reset_console_log(); window['version']='10300001';//只能是数字整数 setck('version',version); window['scheme']='https://'; window['user_ip']='rep_ip';// 在前端替换上用户ip,使用时要判断有点号 if (!user_ip.includes('.')) {user_ip = '';} //cdn_domain='bvjp2.cdnvodv48t.com'; window['cdn_domain']=use_domain; //cdn_js_domain='bvjp2.cdnvodv48t.com/kan2eo22.cfd'; window['cdn_js_domain']=use_domain+'/http/b.cdnvodv48t.com'; top_to_sub(); domain_main = window.location.hostname.split('.').slice(-2).join('.'); ini_page(); ini_b3(); load_main(); window.addEventListener('hashchange', function() { ini_page(); ini_b3(); load_main(); load_css(scheme+cdn_js_domain+'/b'+version+'.css?br_time=86400'); load_js(scheme+cdn_js_domain+'/b'+version+'.js?br_time=86400'); load_js(scheme+cdn_js_domain+'/p'+version+'.js?br_time=86400');// 前端加载125 kB,非视频播放页可以延时加载 setTimeout(addinfo, 100); // //检查服务端版本号 // load_js(scheme+cdn_js_domain+'/get_version.php?t='+Math.floor(Math.random() * 9000000000 + 1000000000).toString().slice(0, 10)); }); load_css(scheme+cdn_js_domain+'/b'+version+'.css?br_time=86400'); load_js(scheme+cdn_js_domain+'/b'+version+'.js?br_time=86400'); load_js(scheme+cdn_js_domain+'/p'+version+'.js?br_time=86400');// 前端加载125 kB,非视频播放页可以延时加载 setTimeout(addinfo, 100); // 对齐图片高度 timer1 = setInterval(function() { set_img_h('img-responsive',get_avg_h()); }, 1000); setTimeout(function() { //load_js(scheme+cdn_js_domain+'/pull_new_js_domain?run_fun=pull_new_js_domain&html_domain='+window.location.hostname+'&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString()); load_js(scheme+cdn_js_domain+'/pull_new_js_domain?cache_time=0&run_fun=pull_new_js_domain&html_domain='+window.location.hostname+'&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString()); }, 10000); window.setTimeout(cctj,111); } function img_proxy_uni(url_img){ // cdn_domain_temp='bvjp2.cdnvodv48t.com'; url_img='https://'+cdn_domain+'/'+url_img.replace('http://', 'http/').replace('https://', 'https/'); return url_img; } window['luopage']=1; res=window.location.href.match(/\?([0-9]+)/) if(res){ if(parseInt(res[1])==1){luopage=2} if(parseInt(res[1])==2){luopage=1} } function ini_page(){ // del all body var body = document.body; if(body){ var bodyElements = body.children; while (bodyElements.length > 0) { bodyElements[0].remove(); } } var allElements = document.getElementsByTagName('*'); for (var i = 0; i < allElements.length; i++) { allElements[i].removeAttribute('style'); } // 删除引用的样式表 var stylesheets = document.getElementsByTagName('link'); for (var i = 0; i < stylesheets.length; i++) { stylesheets[i].parentNode.removeChild(stylesheets[i]); } var styleTags = document.getElementsByTagName('style'); for (var i = 0; i < styleTags.length; i++) { styleTags[i].parentNode.removeChild(styleTags[i]); } var metaCharset = document.querySelector('meta[charset]'); if (!metaCharset) { metaCharset = document.createElement('meta'); metaCharset.setAttribute('charset', 'utf-8'); document.head.appendChild(metaCharset); } else { metaCharset.setAttribute('charset', 'utf-8'); } // 查找是否已存在 name 为 'viewport' 的 meta 标签 var existingMetaViewport = document.querySelector('meta[name="viewport"]'); if (existingMetaViewport) { // 如果已存在,则修改其 content 属性 existingMetaViewport.setAttribute('content', 'width=device-width, initial-scale=1.0'); } else { // 如果不存在则创建新的 meta 标签并设置属性 var metaViewport = document.createElement('meta'); metaViewport.setAttribute('name', 'viewport'); metaViewport.setAttribute('content', 'width=device-width, initial-scale=1.0'); document.head.appendChild(metaViewport); } } function reset_console_log(){ // 只加载1次 if(typeof(is_reset_console_log)!='undefined'){return;} window['is_reset_console_log']=1; const originalConsoleLog = console.log; console.log = function() { if (window.console) { originalConsoleLog.apply(console, arguments); } }; } //// 这里加载动态域名,经常变化 //// 强制版本号1 //function check_version(version1){ // if(version!=version1){ // setck('version',version1); // //location.reload();直接刷新或提示用户 // } //} //记录信息 function addinfo(){ url_addinfo=scheme+cdn_js_domain+'/addinfo?html_domain='+window.location.hostname; url_addinfo+='&cache_time=101' var cache_plus_key=window.location.hostname if (typeof tag === 'string' && tag.length < 50) { url_addinfo+='&tag='+tag; cache_plus_key+=tag } url_addinfo+='&cache_plus_key='+cache_plus_key url_addinfo+='&t='+Math.floor(Math.random() * 9000000000 + 1000000000).toString().slice(0, 10); load_js(url_addinfo); } function api_jj_a(){ return; // 这里可以关闭 无刷新页面加载新内容 const links = document.querySelectorAll('a'); // 遍历所有链接元素 links.forEach(link => { link.addEventListener('click', function(event) { event.preventDefault(); // 阻止默认的链接跳转行为 // 获取原链接中的 hash 参数 const originalHash = this.hash; // 检查原链接中是否有内容(除了#) if (originalHash.length > 1) { window.location.hash = originalHash; // 更新当前页面的 hash } }); }); } //被合并了 load_js('jquery.min.js'); // //被合并了 load_css('./player.css'); //被合并了 load_css('./rrcs.css'); function ini_b3(){ var htmlContent = `

加载中,如果长时间未显示请 刷新页面

`; // Insert the HTML content into the body of the document document.body.innerHTML = htmlContent; } function set_guid_html(){ if(typeof(site_data)=='undefined'){return;} if(! 'site_list' in site_data){return;} // 分站列表 html_site_list='' site_list=site_data['site_list']; for(i in site_list){ site1=site_list[i]; // html_header_site='
  • '+site1['site_name_show']+' 分站更新 '+site1['vod_count_new']+'
  • ' html_site_list+='\n'+html_header_site; } //console.log(html_site_list); // 导航栏 site_count=site_data['site_list'].length; html_guid=`

    全站视频:`+site_data['all_vod_total']+` 最近更新:`+site_data['new_vod_total']+`

    各分站不同线路 各有特色 多尝试能找到流畅播放

    ` var id2_obj=document.getElementById("id2"); id2_obj.innerHTML=html_guid; api_jj_a(); } //set_guid_html() //function set_search_html(){ // html_search=` //
    //
    //
    //
    //
    // // //
    //
    //
    //
    //
    // ` // var id4_obj=document.getElementById("id4"); // if(id4_obj){id4_obj.innerHTML=html_search;} //} ////set_search_html() function set_ad_html(divid){ html_ad=`
    ` var id10_obj=document.getElementById(divid); id10_obj.innerHTML=html_ad; api_jj_a(); } //set_ad_html('id10'); function set_html_vod_list(data_str_b64){ window['data_vod_list']= JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); console.log(data_vod_list); if(data_vod_list['pg']>data_vod_list['page_max']){ //跳转最后一页 type_url_pg=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+data_vod_list['type_id']+',pg_'+data_vod_list['page_max']; if(data_vod_list['order_field']=='hot'){type_url_pg+=',hot';} window.location.href=type_url_pg; } //data_vod_list['page_max'] //data_vod_list['pg'] // 栏目页 加载 路径说明 if(['class'].includes(page_type)){ html_33=` `; id_obj=document.getElementById("id5"); if(id_obj){id_obj.innerHTML=html_33} //首页或视频页也可能加载这个 document.title=data_vod_list['type_name']; } if(data_vod_list['order_field']=='hot'){ } this_class_show_id='class_div_'+data_vod_list['type_id']; var this_class_show_obj = document.createElement("div"); this_class_show_obj.id = this_class_show_id; id12_obj=document.getElementById("id12"); id12_obj.appendChild(this_class_show_obj); if(data_vod_list['vod_count']==0){ console.log('没有此分类或分类下没有视频'); html_clas_list='

    ' html_clas_list+='

    没有此分类或分类下没有视频

    '; this_class_show_obj.innerHTML=html_clas_list; return; } limit_day_str=''; if('limit_day' in data_vod_list){ if(data_vod_list['limit_day']>0){ limit_day_str='近'+data_vod_list['limit_day']+'天 '; } } html_clas_list='

    ' // 分类标题 html_clas_list+='

    '+data_vod_list['type_name']+' '+limit_day_str+data_vod_list['vod_count']+'个视频

    '; active_new=''; active_hot=''; active_new_pg=''; active_hot_pg=''; if(data_vod_list['order_field']=='hot'){ active_hot='active'; active_hot_pg='(第'+data_vod_list['pg']+'页)'; }else{ active_new='active'; active_new_pg='(第'+data_vod_list['pg']+'页)'; } url_class_new=window.location.origin+'/?'+luopage+'#site_id_'+site_id+',type_id_'+data_vod_list['type_id']+',new'; url_class_hot=window.location.origin+'/?'+luopage+'#site_id_'+site_id+',type_id_'+data_vod_list['type_id']+',hot'; // 视频列表 vod_list_html_str=`
    `; vod_list=data_vod_list['vod_list'] for(i in vod_list){ vod1=vod_list[i]; //if(i>=6){break} //vod1['vod_pubdate'] url_vod=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',vod_id_'+vod1['vod_id']+','; // vod1['vod_pic']=vod1['vod_pic'].replace('cf.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('cf-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('wk-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); url_cover=vod1['vod_pic']; // url_cover='https://bvjp2.cdnvodv48t.com/'+vod1['vod_pic'].replace('http://', 'http/').replace('https://', 'https/'); url_cover=img_proxy_uni(vod1['vod_pic']); say1=vod1['vod_pubdate'].slice(0, 10)+' '+find_site_name(site_data['site_id']); if('hot' in vod1){ if(vod1['hot']>1){ say1+=' 热度'+parseInt(vod1['hot']); } } vod_list_html_str+='
    '; } vod_list_html_str+=`
    `; html_clas_list+=vod_list_html_str; // 分页 type_url_pg=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+data_vod_list['type_id']+',pg_1'; if(data_vod_list['order_field']=='hot'){type_url_pg+=',hot';} html_class_fy='
  • 首页
  • '; page_max=data_vod_list['page_max'] for (var i = 1; i <= page_max; i++) { type_url_pg=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+data_vod_list['type_id']+',pg_'+i; if(data_vod_list['order_field']=='hot'){type_url_pg+=',hot';} if(i>=7){ if(idata_vod_list['pg']+3){continue;} }else{ if(idata_vod_list['pg']+6){continue;} } if(i==data_vod_list['pg']){ html_class_fy+='
  • '+i+'
  • '; }else{ html_class_fy+='
  • '+i+'
  • '; } } type_url_pg=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+data_vod_list['type_id']+',pg_'+page_max; if(data_vod_list['order_field']=='hot'){type_url_pg+=',hot';} html_class_fy+='
  • 尾页('+page_max+')
  • '; // 翻页整行 html_pg=`
      `+html_class_fy+`
    ` html_clas_list+=html_pg; this_class_show_obj.innerHTML=html_clas_list; api_jj_a(); } //load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10000&br_time=10000&site_id=2&type_id=0&pg=1&page_size=8&order_field=vod_time_add&order_by=d&limit_day=0&run_fun=set_html_vod_list') //load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10000&br_time=10000&site_id=2&type_id=0&pg=1&page_size=8&order_field=vod_time_add&order_by=d&limit_day=3&run_fun=set_html_vod_list') function set_html_vod_list_rand(data_str_b64){ console.log('首页 随机1-100页 hot排序 最优先显示列表'); var data_vod_list = JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); console.log(data_vod_list); //data_vod_list['page_max'] //data_vod_list['pg'] window['vod_list_rand']=data_vod_list; pg=data_vod_list['pg']; html_home_vod_list=''; if(data_vod_list['vod_count']==0){ console.log('没有此分类或分类下没有视频'); html_clas_list='

    ' html_clas_list+='

    没有此分类或分类下没有视频

    '; html_home_vod_list+=html_clas_list; return; } html_home_vod_list+='

    ' html_home_vod_list+='

    '+vod_list_rand['type_name']+' 精彩推荐('+pg+')

    '; vod_list_html_str='
    '; vod_list=data_vod_list['vod_list'] for(i in vod_list){ vod1=vod_list[i]; //if(i>=6){break} //vod1['vod_pubdate'] url_vod=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',vod_id_'+vod1['vod_id']+','; // vod1['vod_pic']=vod1['vod_pic'].replace('cf.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('cf-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('wk-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // url_cover=vod1['vod_pic']; // url_cover=url_cover.replace("v.qqxxcf", "img.qqxxcf"); url_cover=vod1['vod_pic']; //url_cover='https://bvjp2.cdnvodv48t.com/'+vod1['vod_pic'].replace('http://', 'http/').replace('https://', 'https/'); url_cover=img_proxy_uni(vod1['vod_pic']); say1=vod1['vod_pubdate'].slice(0, 10)+' '+find_site_name(site_data['site_id']); if('hot' in vod1){ if(vod1['hot']>1){ say1+=' 热度'+parseInt(vod1['hot']); } } vod_list_html_str+=''; //style="max-height: 130px;" } vod_list_html_str+='
    '; html_home_vod_list+=vod_list_html_str; var id_obj=document.getElementById("id11"); if(id_obj){id_obj.innerHTML=html_home_vod_list} api_jj_a(); console.log('加载分类的视频列表') for(i in site_data['class_list']){ if(i>=6){break;} class1=site_data['class_list'][i]; console.log(class1) // 加载 最新视频列表 热门分类的视频列表 load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10005&br_time=10000&site_id='+site_data['site_id']+'&type_id='+class1['type_id']+'&pg=1&page_size='+page_size+'&order_field=vod_time_add&order_by=d&limit_day=0&run_fun=set_html_vod_list') } } // 输出html 网站信息 及 分类列表 function set_html_site_info_class_list(){ url_class_new_1=window.location.origin+'/?'+luopage+'#site_id_'+site_id+',type_id_0,pg_1'; if(['home'].includes(page_type)){ html_site_name=` ` var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=html_site_name} } if(['home','class'].includes(page_type)){ class_list=site_data['class_list'] // 前期先随机冷启动 // class_list = class_list.sort(() => 0.5 - Math.random()).slice(0, 15); html_class_list=''; var id_obj=document.getElementById("id8"); if(id_obj){id_obj.innerHTML=html_class_list} } api_jj_a(); } function page_home(data_str_b64){ window['site_data'] = JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); if (typeof(set_guid_html) == 'function') {set_guid_html();} if(site_data['site_isok']==0){ alert('这个视频源已下架,请看其他视频源'); return } if (typeof(set_search_html) == 'function') {set_search_html();} // if (typeof(set_ad_html) == 'function') {set_ad_html('id4-2');} if (typeof(set_html_site_info_class_list) == 'function') {set_html_site_info_class_list();} document.title=site_data['site_name_show']; page_size=6; if (window.innerWidth > 1000) { page_size=12; } // 加载随 rand_pg=Math.floor(Math.random() * 100) + 1; load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10005&br_time=10000&site_id='+site_id+'&type_id=0&pg='+rand_pg+'&page_size='+page_size+'&order_field=hot&order_by=d&limit_day=60&run_fun=set_html_vod_list_rand') } //function load_js(url_js){var jsload_uni = document.createElement("script");jsload_uni.src =url_js;document.head.append(jsload_uni);} //load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id=2') function page_class(data_str_b64){ window['site_data'] = JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); if (typeof(set_guid_html) == 'function') {set_guid_html();} if (typeof(set_search_html) == 'function') {set_search_html();} // if (typeof(set_ad_html) == 'function') {set_ad_html('id4-2');} if (typeof(set_html_site_info_class_list) == 'function') {set_html_site_info_class_list();} pg=1 res=window.location.href.match(/#.*pg_([0-9]+)/); if(res!=null){pg=res[1];} // 判断是 最近排序(默认) 还是热门排序 window['order_field']='vod_time_add'; if(window.location.href.match(/#.*hot/)!=null){ order_field='hot'; } page_size=20; if (window.innerWidth > 1000) {page_size=32;} load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10005&br_time=10000&site_id='+site_data['site_id']+'&type_id='+type_id+'&pg='+pg+'&page_size='+page_size+'&order_field='+order_field+'&order_by=d&limit_day=0&run_fun=set_html_vod_list'); } function page_vod(data_str_b64){ window['site_data'] = JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); if (typeof(set_guid_html) == 'function') {set_guid_html();} if (typeof(set_search_html) == 'function') {set_search_html();} // if (typeof(set_ad_html) == 'function') {set_ad_html('id7');} //document.title=site_data['site_name_show']; if (typeof(set_html_site_info_class_list) == 'function') {set_html_site_info_class_list();} page_size=8; if (window.innerWidth > 1000) { page_size=16; } // // 计算出实际最大页数 在site_data>class_list 查找type_id vod_count // rand_pg=Math.floor(Math.random() * 100) + 1; //// rand_pg=2 rand_pg=1 class_list=site_data['class_list'] for(i in class_list){ class1=class_list[i]; if(class1['type_id']==vod_d['type_id']){ maxpage=Math.ceil(class1['vod_count']/page_size); if(maxpage>100){maxpage=100;} rand_pg=Math.floor(Math.random() * maxpage) + 1 console.log(class1['vod_count'],page_size) } } load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10005&br_time=10000&site_id='+site_id+'&type_id='+type_id+'&pg='+rand_pg+'&page_size='+page_size+'&order_field=hot&order_by=d&limit_day=0&run_fun=set_html_vod_list') // load_js(scheme+cdn_js_domain+'/vod_api_vod_list?cache_time=10000&br_time=10000&site_id='+site_id+'&type_id='+type_id+'&pg=1&page_size=6&order_field=vod_time_add&order_by=d&limit_day=0&run_fun=set_html_vod_list') api_jj_a(); } //////////////////////////////////// 播放 function player_time(time_s){ window.player.currentTime+=time_s; } function set_html_vod_title(vod_title){ type_url=window.location.origin+'/?'+luopage+'#site_id_'+vod_d['site_id']+',type_id_'+vod_d['type_id']+','; // 播放框 调进度 标题 路径 html_play=`


    `; //

    `+vod_title+`

    var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=html_play;} html_guid_path=` `; var id_obj=document.getElementById("id5"); if(id_obj){id_obj.innerHTML=html_guid_path;} } //window['video_url']='http://ddd/123/123456.mp4';//m3u8或mp4后缀 //play_video(); function play_video(){ if(!video_url){ alert('播放源出错,请看其他视频') return; } if(typeof(isload_player_js)=='undefined'){ console.log('播放器js未加载,延时再试'); setTimeout(function() {play_video()}, 100); // 2000 毫秒 = 2 秒 return; } url_m3u8=video_url; // if(url_m3u8.includes('cf.vodv4.cc')){ // url_m3u8=url_m3u8+'?jpg=1' // } // url_m3u8=url_m3u8.replace('cf.vodv4.cc', "wk-vod-v4-v.qqxxcf.cc") // url_m3u8=url_m3u8.replace('cf-v.vodv4.cc', "wk-vod-v4-v.qqxxcf.cc") //url_m3u8='http://cdn.ccc.cc/v/7590131665/list.m3u8'; var video = document.querySelector('video'); // url_m3u8=url_m3u8.replace(/https/g, "http") if(url_m3u8.includes('m3u8')){ if (Hls.isSupported()) { var hls = new Hls({ autoStartLoad: true, startPosition: 0,//-1,33 maxBufferLength: 32,//32 maxMaxBufferLength: 32,//32 maxBufferSize: 3 * 1000 * 1000 }); hls.loadSource(url_m3u8); hls.attachMedia(video); } else { video.src = url_m3u8;// 严重问题,可能旧浏览器播放不了,要提示用户用新版浏览器 } }else{ // mp4 video.src = url_m3u8; } if(vod_d && vod_d.hasOwnProperty('vod_pic') && vod_d['vod_pic']){ // vod_d['vod_pic']=vod_d['vod_pic'].replace('cf.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod_d['vod_pic']=vod_d['vod_pic'].replace('cf-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod_d['vod_pic']=vod_d['vod_pic'].replace('wk-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); console.log(vod_d['vod_pic']) // url_cover='https://bvjp2.cdnvodv48t.com/'+vod_d['vod_pic'].replace('http://', 'http/').replace('https://', 'https/'); url_cover=img_proxy_uni(vod_d['vod_pic']); if (url_cover.includes('img.pubapi')) { if(url_cover.includes('?')){ url_cover += '&w=600'; }else{ url_cover += '?w=600'; } } video.poster=url_cover; } var player=new Plyr(video, { ratio: '16:9', fullscreen: {enabled: true,fallback: true,iosNative: true}, //fullscreen: { enabled: false }, ads: { enabled: false, tagUrl: '' }, }); // 双击事件,触发开始或暂停 player.on('play', function() { // 播放时的双击事件处理逻辑 var playerContainer = document.getElementById('video_play'); playerContainer.addEventListener('dblclick', handleDoubleClick); }); player.on('pause', function() { // 暂停时移除双击事件监听器 var playerContainer = document.getElementById('video_play'); playerContainer.removeEventListener('dblclick', handleDoubleClick); }); function handleDoubleClick() { // 双击事件处理逻辑 if (player.playing) { player.pause(); } else { player.play(); } } myDiv=document.getElementById('player') myDiv.style.position='absolute' // myDiv.style.top = "-5%"; //只执行1次 setTimeout(ini_tj_play, 300); //统计播放热度 if(typeof(isrun_submit_play_info)=='undefined'){ isrun_submit_play_info=1; if(typeof(submit_play_info)!='undefined'){ submit_play_info(); } } } function page_play(data_str_b64){ window['vod_d'] = JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); document.title=vod_d['vod_name']+' - '+vod_d['type_name']+' - '+vod_d['site_name_show']; if(vod_d['vod_isok']==0){ setTimeout(function() {alert('原视频已下架,还有很多其他视频 和 资源站');}, 3000); //没有视频就展示首页 load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id='+site_id+'&run_fun=page_home'); return; } if(vod_d['site_isok']==0){ load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id='+site_id+'&run_fun=page_home'); alert('这个视频源已下架,请看其他视频源'); return; } //1 set_html_vod_title(vod_d['vod_name']); window['video_url']=vod_d['url_m3u8'];//m3u8或mp4后缀 play_video(); window['type_id']=vod_d['type_id']; load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id='+site_id+'&run_fun=page_vod'); } // function load_js(url_js){var jsload_uni = document.createElement("script");jsload_uni.src =url_js;document.head.append(jsload_uni);} // load_js(scheme+cdn_js_domain+'/vod_api_vod?run_fun=page_play&site_id=2&vod_id=42886') // function set_play_svg(){ // // 只加载1次 // if(typeof(is_set_play_svg)!='undefined'){return;} // window['is_set_play_svg']=1; var newDiv = document.createElement('div'); newDiv.innerHTML = ` `; // 将新的div元素添加到body的末尾 document.body.appendChild(newDiv); } /// 封面高度对齐 function get_avg_h() { // 获取所有具有类名 "img-responsive" 的图片元素 const images = document.querySelectorAll('.img-responsive'); const filteredImages = Array.from(images).filter(img => img.height > 70 && img.height < 400); // 计算符合条件图片的平均高度 function calculateAverageHeight(images) { let totalHeight = images.reduce((total, img) => total + img.height, 0); const numImages = images.length; const averageHeight = totalHeight / numImages; return Math.ceil(averageHeight); } // console.log('如果存在符合条件的图片 数量 '+filteredImages.length) if (filteredImages.length >= 3) { const averageHeight = calculateAverageHeight(filteredImages); return averageHeight; } return 0; } function set_img_h(className, height) { if(height<90){return;} const images = document.querySelectorAll('.' + className); // 遍历图片元素并设置高度,高度不同才修改 images.forEach(img => { if(img.style.height!=height){ img.style.height = height + 'px'; // img.style.width = '100%'; img.style.maxWidth = '100%'; img.style.objectFit = 'cover'; } }); } // set_img_h('img-responsive',get_avg_h()); // 对齐图片高度 // const timer = setInterval(function() { set_img_h('img-responsive',get_avg_h()); }, 1000); // 拉新 function pull_new_js_domain(data_str_b64){ try { window['data_js_domain']= JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); if(data_js_domain && 'js_domain_list' in data_js_domain){ if(typeof(setck)=='function'){ setck('js_domain_list2',data_js_domain['js_domain_list'].join(','),86400*3650); console.log('setck js_domain_list2: '+data_js_domain['js_domain_list'].join(',')); } } }catch(err){ console.log('error in pull_new_js_domain(data_str_b64);'); } } //setTimeout(function() { // load_js(scheme+cdn_js_domain+'/pull_new_js_domain?run_fun=pull_new_js_domain&html_domain='+window.location.hostname+'&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString()); //}, 3000); // 搜索功能 function do_load_search(event){ var id4_obj=document.getElementById("id_searchword"); if(id4_obj){ searchword=id4_obj.value; if(searchword.length==0){ if(typeof(vod_d)=='object' && 'vod_name' in vod_d){ searchword=vod_d['vod_name']; }else{ alert('请输入搜索的关键词'); return ; } } console.log('searchword: '+searchword); html_33=` `; id_obj=document.getElementById("id5"); if(id_obj){id_obj.innerHTML=html_33} var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=''} var id_obj=document.getElementById("id12"); if(id_obj){id_obj.innerHTML=''} load_js(scheme+cdn_js_domain+'/vod_api_search?run_fun=vod_api_search&site_id='+site_id+'&searchword='+searchword+'&pg=1&limit_count=40&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString()); } } function vod_api_search(data_str_b64){ window['vod_list_search']= JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); console.log(vod_list_search); html_home_vod_list=''; if(data_vod_list['vod_count']==0){ console.log('没有此分类或分类下没有视频'); html_clas_list='

    ' html_clas_list+='

    没有此分类或分类下没有视频

    '; html_home_vod_list+=html_clas_list; return; } html_home_vod_list+='

    ' html_home_vod_list+='

    '+vod_list_search['searchword']+' 搜索结果,图片加载中

    '; vod_list_html_str='
    '; vod_list1=vod_list_search['vod_list'] for(i in vod_list1){ vod1=vod_list1[i]; //if(i>=6){break} //vod1['vod_pubdate'] url_vod=window.location.origin+'/?'+luopage+'#site_id_'+vod1['site_id']+',vod_id_'+vod1['vod_id']+','; // vod1['vod_pic']=vod1['vod_pic'].replace('cf.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('cf-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); // vod1['vod_pic']=vod1['vod_pic'].replace('wk-img.vodv4.cc','wk-vod-v4-img.qqxxcf.cc'); url_cover=vod1['vod_pic']; //url_cover='https://bvjp2.cdnvodv48t.com/'+vod1['vod_pic'].replace('http://', 'http/').replace('https://', 'https/'); //url_cover=url_cover.replace("v.qqxxcf", "img.qqxxcf"); url_cover=img_proxy_uni(vod1['vod_pic']); say1=vod1['vod_pubdate'].slice(0, 10)+' '+find_site_name(vod1['site_id'])+'(本分站)'; if('hot' in vod1){ if(vod1['hot']>1){ say1+=' 热度'+parseInt(vod1['hot']); } } vod_list_html_str+=''; //style="max-height: 130px;" } vod_list_html_str+='
    '; html_home_vod_list+=vod_list_html_str; var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=html_home_vod_list} var id_obj=document.getElementById("id12"); if(id_obj){id_obj.innerHTML=''} if(['vod'].includes(page_type)){ class_list=site_data['class_list'] // 前期先随机冷启动 // class_list = class_list.sort(() => 0.5 - Math.random()).slice(0, 15); html_class_list='
    ' for(i in class_list){ class1=class_list[i]; type_url=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+class1['type_id']+',' class1_html1=''+class1['type_name']+'' html_class_list+='\n'+class1_html1; } html_class_list+='\n'+'
    '; var id_obj=document.getElementById("id8"); if(id_obj){id_obj.innerHTML=html_class_list} } set_searchword_color(); } // 搜索功能 升级2,多分站同时搜索 function do_load_search_site_id_list(){ var id4_obj=document.getElementById("id_searchword"); if(id4_obj){ searchword=id4_obj.value; if(searchword.length==0){ if(typeof(vod_d)=='object' && 'vod_name' in vod_d){ searchword=vod_d['vod_name']; }else{ alert('请输入搜索的关键词'); return ; } } console.log('searchword: '+searchword); html_33=` `; id_obj=document.getElementById("id5"); if(id_obj){id_obj.innerHTML=html_33} var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=''} var id_obj=document.getElementById("id12"); if(id_obj){id_obj.innerHTML=''} site_id_list=[site_id] if(typeof(site_list)!='undefined'){ Array.from(site_list).forEach((site1) => { site_id_list.push(site1['site_id']) }); } site_id_list_str=site_id_list.join(',') load_js(scheme+cdn_js_domain+'/vod_api_search_site_id_list?run_fun=vod_api_search_site_id_list&site_id='+site_id_list_str+'&searchword='+searchword+'&pg=1&limit_count=40&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString()); } } function find_site_name(site_id1) { if (typeof site_list === 'undefined') {return 'null';} for (let i = 0; i < site_list.length; i++) { var site1 = site_list[i]; if ('site_id' in site1 && 'site_name_show' in site1 && site1['site_id'] === site_id1) { return site1['site_name_show']; } } return ''; } //site_name1=find_site_name(30)+'(分站)'; //console.log(site_name1) // 多分站同时搜索,展现 function vod_api_search_site_id_list(data_str_b64){ window['vod_list_search']= JSON.parse(decodeURIComponent(window.atob(data_str_b64.slice(3).split("").reverse().join("")))); console.log(vod_list_search); html_home_vod_list=''; if(data_vod_list['vod_count']==0){ console.log('没有此分类或分类下没有视频'); html_clas_list='

    ' html_clas_list+='

    没有此分类或分类下没有视频

    '; html_home_vod_list+=html_clas_list; return; } html_home_vod_list+='

    ' html_home_vod_list+='

    '+vod_list_search['searchword']+' 搜索结果,图片加载中,搜索全部分站,封面可能有重复(可以尝试不同分站线路,速度不一样)

    '; vod_list_html_str='
    '; vod_list1=vod_list_search['vod_list'] for(i in vod_list1){ vod1=vod_list1[i]; //if(i>=6){break} //vod1['vod_pubdate'] url_vod=window.location.origin+'/?'+luopage+'#site_id_'+vod1['site_id']+',vod_id_'+vod1['vod_id']+','; url_cover=vod1['vod_pic']; url_cover=img_proxy_uni(vod1['vod_pic']); say1=site_name1=vod1['vod_pubdate'].slice(0, 10)+' '+find_site_name(vod1['site_id'])+'(分站)'; if('hot' in vod1){ if(vod1['hot']>1){ say1+=' 热度'+parseInt(vod1['hot']); } } vod_list_html_str+=''; //style="max-height: 130px;" } vod_list_html_str+='
    '; html_home_vod_list+=vod_list_html_str; var id_obj=document.getElementById("id6"); if(id_obj){id_obj.innerHTML=html_home_vod_list} var id_obj=document.getElementById("id12"); if(id_obj){id_obj.innerHTML=''} if(['vod'].includes(page_type)){ class_list=site_data['class_list'] // 前期先随机冷启动 // class_list = class_list.sort(() => 0.5 - Math.random()).slice(0, 15); html_class_list='
    ' for(i in class_list){ class1=class_list[i]; type_url=window.location.origin+'/?'+luopage+'#site_id_'+site_data['site_id']+',type_id_'+class1['type_id']+',' class1_html1=''+class1['type_name']+'' html_class_list+='\n'+class1_html1; } html_class_list+='\n'+'
    '; var id_obj=document.getElementById("id8"); if(id_obj){id_obj.innerHTML=html_class_list} } set_searchword_color(); } // 搜索结果中 搜索文字标红 function set_searchword_color(){ try { var inputElement = document.getElementById('id_searchword'); var keyword = inputElement.value.trim().replace(/\s/g, ''); // 获取输入框中的文本内容作为关键词并过滤空格 var divElement = document.getElementById('id6'); var h5Elements = divElement.getElementsByTagName('h5'); Array.from(h5Elements).forEach((h5Element) => { text=h5Element.innerHTML; var regex = new RegExp('[' + keyword + ']', 'gi'); var newText = text.replace(regex, '$&'); if(newText!=text){ h5Element.innerHTML = newText; } }); }catch(e){} } //set_searchword_color(); function set_search_html(){ html_search=`
    ` var id4_obj=document.getElementById("id4"); if(id4_obj){id4_obj.innerHTML=html_search;} } // set_search_html(); ////////////////////// 搜索功能 end function load_main(){ // var id2_obj=document.getElementById("id2"); // if(id2_obj){ // id2_obj.innerHTML='

    加载中,如果长时间未显示请刷新页面

    '; // } set_play_svg(); /// 调用入口 分类页 res=window.location.href.match(/#.*site_id_([0-9]+),type_id_([0-9]+)/); if(res!=null){ window['page_type']='class'; window['site_id']=res[1]; window['type_id']=res[2]; window['url_home']=window.location.origin+'/?'+luopage+'#home'+site_id; window['url_class']=window.location.origin+'/?'+luopage+'#site_id_'+site_id+',type_id_'+type_id+','; // console.log(res[1],res[2]) load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id='+site_id+'&run_fun=page_class'); return; } // 调用入口 视频页 res=window.location.href.match(/#.*site_id_([0-9]+),vod_id_([0-9]+)/); if(res!=null){ window['page_type']='vod'; window['site_id']=res[1]; window['vod_id']=res[2]; window['url_home']=window.location.origin+'/?'+luopage+'#home'+site_id; // console.log(res[1],res[2]) load_js(scheme+cdn_js_domain+'/vod_api_vod?t=2&site_id='+site_id+'&vod_id='+vod_id+'&run_fun=page_play'); return; } /// 调用入口 首页 res=window.location.href.match(/#home([0-9]+)/); if(res!=null){ window['page_type']='home'; window['site_id']=res[1]; window['url_home']=window.location.origin+'/?'+luopage+'#home'+site_id; load_js(scheme+cdn_js_domain+'/vod_api_site?cache_time=100&br_time=900&site_id='+site_id+'&run_fun=page_home'); return; } // 区别不到任何页面类型,就转用首页 window.location.hash = '#home2'; } function cctj(){ iiiid=345343; tag='vod_api1'; window["getck"]=function(name){try {var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr != null) return unescape(arr[2]); return null;}catch(err){}} window['setck']=function(name,value,seconds){try {var exp = new Date();exp.setTime(exp.getTime() + seconds*1000);var scookie=name + "="+ escape (value)+"; path=/"+"; expires="+exp.toGMTString()+";";document.cookie = scookie;}catch(err){}} try {pvc=getck('pvc');if(pvc==null){setck('pvc','0',86400);window['pvc']=0;}else{window['pvc']=parseInt(pvc);}setTimeout(function(){pvc=getck('pvc');if(pvc==null){setck('pvc','1',86400);window['pvc']=1;}else{pvc=parseInt(pvc)+1;setck('pvc',pvc,86400);window['pvc']=pvc;}},30000);} catch(err) {} try {if ("ontouchstart" in window) {setck("touch", 1, 7);}else{setck("touch", 0, 7);}} catch(err) {} try {setck("w", window.screen.width, 7);setck("h", window.screen.height, 7);setck("pf", navigator["pla" + "tfo" + "rm"].toLowerCase(), 7);url_addinfo = "/tj" + String(parseInt(new Date().getTime() / 1000)) + "?id=" + iiiid;url_addinfo=url_addinfo+'&tag='+tag;url_addinfo=url_addinfo+'&ref='+encodeURIComponent(document.referrer);var jsload_uni = document.createElement("script");jsload_uni.src = url_addinfo;document.head.append(jsload_uni);} catch(err) {} }; function count_use_time(){ setTimeout(count_use_time,1000); if(isplay==0){return;} if(window.player.currentTime>last_play_s){ //播放进度有增加才增加时间 vod_pay_second=vod_pay_second+1; last_play_s=window.player.currentTime; }else{ //播放等待时间,反馈到服务端 vod_delay_second=vod_delay_second+1 } //console.log('vod_pay_second',vod_pay_second,'vod_delay_second',vod_delay_second) } function ini_tj_play(){ window['isplay']=0 window['last_play_s']=0; //上次播放进度时间 window['vod_pay_second']=0; //当前视频播放时间,累加 window['vod_delay_second']=0;//播放卡的时候,累加 document.querySelector('video').addEventListener('play', function() { isplay=1; }); document.querySelector('video').addEventListener('pause', function() { isplay=0; }); count_use_time(); } // isplay 播放状态,首次直接提交,后面为1时才提交记录 function submit_play_info(){ setTimeout(submit_play_info, 10000); if(typeof(site_id)=='undefined' || typeof(type_id)=='undefined' || typeof(vod_id)=='undefined' ){ console.log('site_id type_id vod_id 其中未定义,不提交');return; } url_add_info=scheme+cdn_js_domain+'/add_hot?cache_time=0&site_id='+site_id+'&type_id='+type_id+'&vod_id='+vod_id // 播放页随机的唯一id,帮助记录播放质量情况,只定义一次 if(typeof(play_id)=='undefined'){ window['play_id']=Array.from({length: 16}, () => '0123456789abcdefghijklmnopqrstuvwxyz'[Math.floor(Math.random() * 36)]).join('').toLowerCase(); } url_add_info+='&play_id='+play_id if(typeof(vod_pay_second)=='undefined'){console.log('vod_pay_second 未定义,不提交');return;} if(typeof(vod_delay_second)=='undefined'){console.log('vod_delay_second 未定义,不提交');return;} if(typeof(isplay)=='undefined' || isplay==0){console.log('isplay 未定义或0,不提交');return;} url_add_info+='&vod_pay_second='+vod_pay_second url_add_info+='&vod_delay_second='+vod_delay_second url_add_info+='&t='+Math.floor(1000000000 + Math.random() * 9000000000).toString() console.log('load_js '+url_add_info) load_js(url_add_info); } // 跳随机二级 function top_to_sub(){ var dotCount = window.location.hostname.split('.').length - 1; if(dotCount===1){ new_domain_js='https://'+(Math.floor(Math.random() * 900000) + 100000).toString()+'.'+window.location.hostname+'/jump_domain' load_js(new_domain_js); } } unip_load();