苹果CMSV10播放器增加记忆+P2P播放+自动下一集功能
此接口只支持M3U8资源及MP4资源-永久无广告,已稳定一年多(注释:MP4资源只支持H264的 不支持H265)
直接在你播放器的js里面添加(此处以整合自动下一集及P2P视频加速)
第一种方法:
看好自己的网站是HTTP还是HTTPS 自己修改即可
MacPlayer.Html = '<iframe border="0"mozallowfullscreen="mozallowfullscreen"msallowfullscreen="msallowfullscreen"oallowfullscreen="oallowfullscreen"webkitallowfullscreen="webkitallowfullscreen" src="https://www.mtosz.com/m3u8.php?url='+MacPlayer.PlayUrl+'&next=//'+maccms.url+''+parent.MacPlayer.PlayLinkNext+'" height="'+MacPlayer.Height+'" width="100%" height="100%" marginWidth="0" frameSpacing="0" marginHeight="0" allowfullscreen="true" frameBorder="0" scrolling="no" vspale="0" noResize></iframe>'; MacPlayer.Show();
第二种方案:
使用全局接口在你苹果cms 系统—–播放器参数设置—–接口地址:填写你搭建好的解析接口
解析接口(对应你网站是HTTP还是HTTPS):
1.在你player目录修改parse.js文件 为下面面的代码
if(MacPlayer.PlayLinkNext){
MacPlayer.Html='<iframe width="100%" height="'+MacPlayer.Height+'" src="'+MacPlayer.Parse+MacPlayer.PlayUrl+'&next=//'+maccms.url+''+parent.MacPlayer.PlayLinkNext+'" frameborder="0" allowfullscreen="true" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';MacPlayer.Show();
}else{
MacPlayer.Html='<iframe width="100%" height="'+MacPlayer.Height+'" src="'+MacPlayer.Parse+MacPlayer.PlayUrl+'" frameborder="0" allowfullscreen="true" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';MacPlayer.Show();
}
2.在你添加播放器的时候 举例:例如我添加qq 解析状态—启用 解析接口状态—为空即可 无视播放器代码即可 然后点击保存
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。