[苹果CMSV10教程]本地化DPLAYER和CKPLAYER播放器自动下一集

2019-12-11 0 1,516

之前分享过苹果cms整合DPLAYERCKPLAYER播放器的教程,[苹果CMSV10教程]CKplayer、DPlayer本地调用m3u8解析使用方法今天分享一个单独增加自动下一集功能。
苹果cms网站根目录下的static/player/dplayer.html文件
查找
try{
在以上代码前插入以下代码

dp.on('ended', function (){
        if(parent.MacPlayer.PlayLinkNext!=''){
            top.location.href = parent.MacPlayer.PlayLinkNext;
        }
    });

效果图
[苹果CMSV10教程]本地化DPLAYER和CKPLAYER播放器自动下一集

你采集的资源站M3U8地址的话,可以使用本地DPLAYER的
把资源站JS的播放器代码替换为:

MacPlayer.Html = '<iframe border="0" src="'+maccms.path+'/dplayer.html" width="100%" height="100%" marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0" scrolling="no" vspale="0" allowfullscreen="true" noResize></iframe>';MacPlayer.Show();

 

以上 代码通用M3U8和MP4的播放地址!
如果需要使用CK自动下一集的话可以把JS代码替换为:

MacPlayer.Html = '<iframe border="0" src="'+maccms.path+'/ckplayer.html" width="100%" height="100%" marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0" scrolling="no" vspale="0" allowfullscreen="true" noResize></iframe>';MacPlayer.Show();

 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

抓虾网 经验教程 [苹果CMSV10教程]本地化DPLAYER和CKPLAYER播放器自动下一集 https://www.zhuax.com/1562.html

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务