简介这次站长图库整理了苹果CMSV10播放器增加记忆+P2P播放+自动下一集功能的方法,如下:在网站根目录上传或创建dplayer.php,代码如下:dplayer增加记忆+P2P播放+自动下一集功能body,html{width:100%;height:100%;background:#000;padding:0;margin:0;overflow-x:hidden;overflow-y:hidde
这次站长图库整理了苹果CMSV10播放器增加记忆+P2P播放+自动下一集功能的方法,如下:
在网站根目录上传或创建 dp .php,代码如下:
<html><head>< >dp 增加记忆+P2P播放+自动下一集功能</ >< http-equiv="Content-Type"content="text/html;charset=utf-8"/>< http-equiv="X-UA-Compatible"content="IE=11"/>< content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"id="viewport"name="viewport"><styletype="text/css">body,html{width:100%;height:100%;background:#000;padding:0;margin:0;overflow-x:hidden;overflow-y:hidden}*{margin:0;border:0;padding:0;text-decoration:none}#stats{position:fixed;top:5px;left:10px;font-size:10px;z-index:20719029;display:block;background-image:-webkit-linear-gradient(left,#3498db,#f4792010%,#d7134520%,#f7acbc30%,#ffd40040%,#3498db50%,#f4792060%,#d7134570%,#f7acbc80%,#ffd40090%,#3498db);color:transparent;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-size:200%100%;animation:masked-animation4sinfinitelinear;}#p Cnt{position:inherit}</style>< rel="stylesheet"href="https://cdn.jsdelivr.net/npm/dp @latest/dist/DP .min.css"/></head><bodystyle="background:#000"leftmargin="0"topmargin="0"marginwidth="0"marginheight="0" =window.event.returnValue=false><divid="dp "></div><divid="stats"></div>< src="https://cdn.jsdelivr.net/npm/cdnbye@latest"></ >< src="https://cdn.jsdelivr.net/npm/dp @latest"></ >< >url='<?phpecho($_REQUEST['url']);?>';varwebdata={set:function(key,val){window.sessionStorage.setItem(key,val);},get:function(key){returnwindow.sessionStorage.getItem(key);},del:function(key){window.sessionStorage.removeItem(key);},clear:function(key){window.sessionStorage.clear();}};var_peerId='',_peerNum=0,_totalP2PDownloaded=0,_totalP2PUploaded=0;vardp=newDP ({autoplay:true,container:document.getElementById('dp '),volume:1.0,preload:'auto',screenshot:true,theme:'#28FF28',video:{url:url,type:'customHls',customType:{'customHls':function(video,p ){consthls=newHls({debug:false,p2pConfig:{logLevel:true,live:false,//如果是直播设为true}});hls.loadSource(video.src);hls.attachMedia(video);hls.p2pEngine.on('stats',function(stats){_totalP2PDownloaded=stats.totalP2PDownloaded;_totalP2PUploaded=stats.totalP2PUploaded;updateStats();}).on('peerId',function(peerId){_peerId=peerId;}).on('peers',function(peers){_peerNum=peers.length;updateStats();});}}},});dp.seek(webdata.get('vod'+url));setInterval(function(){webdata.set('vod'+url,dp.video.currentTime);},1000);dp.on('ended',function(){if(parent.MacP .Play Next!=''){top.location.href=parent.MacP .Play Next;}});functionupdateStats(){vartext='七星P2P正在为您加速'+(_totalP2PDownloaded/1024).toFixed(2)+'MB已分享'+(_totalP2PUploaded/1024).toFixed(2)+'MB'+'连接节点'+_peerNum+'个';document.getElementById('stats').innerText=text}</ ></body></html>
二、进苹果CMSV10后台--视频--播放器--添加(界面)
基本设置-状态:启用,编码:bjm3u8,名称:bjm3u8,备注: ,目标窗口:当前,解析状态:启用,解析:/dp .php?url=,排序:909,提示:无需安装任何插件,如下图
下载链接:网站源码/小程序源码/网站模板下载