苹果cmsv10 dplayer播放器优化

news/2024/11/25 15:29:31/

播放器功能:

  • 支持格式:m3u8、mp4
  • 播放记忆
  • P2P加速(去除在视频中P2P信息)
  • 自动播放下一集(仅电脑端)
  • 去掉弹幕(需要的自行去掉注释)
  • 手机增加引导点击播放图片

使用方法:

  • 将文件上传到自己的网站(比如文件名叫dplayer.php,上传到要目录)
  • 在苹果cms后台播放器设置中开启解析,解析域名设置为/dplayer.php/?url=

代码:(代码摘自网络,请检查测试后正常使用)

<html><head><title>dplayer增加记忆+P2P播放</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=11" /><meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport"><link rel="stylesheet"  /> <style type="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;color:#fdfdfd;z-index:20719029;text-shadow:1px 1px 1px #000, 1px 1px 1px #000}#dplayer{position:inherit}#play_icon { background-color: black; height:100%;background-image: url("data:image/gif;base64,R0lGODlhxgL0AfU/ANLS0gAAAGRkZKOjo4WFhaurq9zc3ERERAQGB/mHAMTExLu7u+Pj46NZAKEnEh1unT4+PpmZme8/IlhYWHFxcchtAGc4ALOzs8MzHC4uLhdWe5GRkY6OjkxMTCaRzi+z/zIRBUoUC1ItAHx8fPCCABoaGu/v7/j4+OB6AB+AtHAdDy2q8w86UutCJyil6RgJAn9FANo6HxTD/hO89AsqPAYTGwoKCjOx/wcaJgoEATwgACmb3QMNEiIPAgAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs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5oAzl2D73cFw+nrUfTGpeKAFhUnxyfgGAOB8WeD96LYlWV4yBaAhqkQWTiFN9MzVaW12EJZ8qFqytrq+wsaybWBa0shYRACH5BAUUAAkALEcBYwE6AAsAAASTkMhJQxA4a3u6/xYAGCI5AtagrizlEpYmC9xnW2YuokEx+MDf4FW5zDI1myekOxlSwShxEjtikspDAFFynlKs8FRStWKVTO83IIz+xjCjOZBdBpomnjsILx/PNwEnXSRPbGEtY34zgCCCamt7Qn1yf3R1WoKFaghskgWUVleXdThdXmCIKhasra6vsLGyr51bFp0RACH5BAUUAAkALEcBYwE7AAsAAASZcMhJQyA4ayu6/9YhjqQFAMaZokBQDG8MD5ZmE9ynh2RvrcBTayaL1W6ZnM7D641MQZYhQKnSLkiMciloOg8BhErKohaJx+x26XVCyeWzLI1c7wLfZyC6GlondDd2IHh5YAEsYylTcjOBNoNMhXkmcGVEmAWPGwFckoaHZIsnCH+AWGqdnl2TXz9jZBZhFgi0sre4ubq7vLsRADs="); background-size: contain; background-repeat: no-repeat; background-position: center;   display:flex; align-items: center;   position: absolute; top: 0px; left: 0px; width: 100%;}#play_icon img {  width:10%; margin-left: 45%;} </style></head><body style="background:#000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu=window.event.returnValue=false><div id="dplayer"></div><div id="stats"></div><div id="play_icon"></div><script src="https://cdn.jsdelivr.net/npm/cdnbye@latest"></script><script src="https://cdn.jsdelivr.net/npm/dplayer@latest"></script><script>var url = '<?php echo($_REQUEST['url']);?>';var isWap = navigator.userAgent.match(/iPad|iPhone|iPod|Baidu/i) != null; //百度浏览器和苹果移动端不使用P2P功能if(!isWap){if(url.indexOf(".m3u8") > 0){          var _peerId = '', _peerNum = 0, _totalP2PDownloaded = 0, _totalP2PUploaded = 0;        var type = 'customHls';}else {var type = 'normal'; //MP4格式P2P兼容性不好,不调用P2P。}var dp = new DPlayer({container: document.getElementById('dplayer'),autoplay: true,hotkey: true,  // 移动端全屏时向右划动快进,向左划动快退。logo: '',video: {url:url,pic: '',  //图片地址。type: type,customType: {'customHls': function (video, player) {const hls = new Hls({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();});}}},                        /*danmaku: {id: 'E3368B56CDBB4IU',   //弹幕代码,可定义其他的ID,请修改;api: 'https://dplayer.moerats.com/',bottom: '25%',unlimited: false,}, */             contextmenu: [],highlight: [{text: '提示:点击下方状态栏可以发送字幕',time: 360,},{text: '警告:请不要相信视频中任何广告与字幕',time: 1200,},]});var webdata = {set:function(key,val){window.sessionStorage.setItem(key,val);},get:function(key){return window.sessionStorage.getItem(key);},del:function(key){window.sessionStorage.removeItem(key);},clear:function(key){window.sessionStorage.clear();}};dp.seek(webdata.get('vod'+url));setInterval(function(){webdata.set('vod'+url,dp.video.currentTime);},1000);dp.on('ended',function() {dp.notice("视频播放已结束");                   //可以替换成下一集调用等代码if(parent.MacPlayer.PlayLinkNext!=''){top.location.href = parent.MacPlayer.PlayLinkNext;}});        }else{document.getElementById('dplayer').innerHTML='<video src="'+url+'" controls="controls" preload="preload" poster="" width="100%" height="100%" autoplay="autoplay"></video>';}function updateStats() {var text = '七星P2P正在为您加速' + (_totalP2PDownloaded/1024).toFixed(2)+ 'MB 已分享' + (_totalP2PUploaded/1024).toFixed(2) + 'MB' + ' 连接节点' + _peerNum + '个';document.getElementById('stats').innerText = text ;}</script><script>var video = document.getElementsByTagName('video')[0];video.oncanplay = function(){video.play();}if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {//手机端var img = new Image();img.src="https://img-blog.csdnimg.cn/2022010709325066351.png";document.getElementById("play_icon").appendChild(img);video.setAttribute("playsinline", "true");video.setAttribute("webkit-playsinline", "true");video.setAttribute("x5-video-player-type", "h5");video.setAttribute("x5-video-player-fullscreen", "true");video.onplay = function(){document.getElementById("play_icon").style.display = "none"; }video.onpause = function(){document.getElementById("play_icon").style.display = null; document.getElementById("play_icon").style.backgroundColor = "transparent"; document.getElementById("play_icon").style.backgroundImage = "url()"; }var state = 0;document.addEventListener('touchstart', function(){    if(state==0){        video.play();        state=1;    }}, false);document.addEventListener("WeixinJSBridgeReady", function () {    video.play();}, false);}else{//电脑端document.getElementById("play_icon").remove();}function playVideo(){document.getElementById("play_icon").style.display = "none"; video.play()}        </script></body>
</html>

手机播放引导截图:


由于手机上不能自动播放,需要用户点击才能播放,所以加了引导点击,图片中代码中的2段base64数据,可以自行更换其他图片

声明:除特殊声明外本站文档均由作者原创,转载请注明出处,原文地址:苹果cms如何用m3u8播放器


http://www.ppmy.cn/news/287739.html

相关文章

苹果手机iphone如何播放电脑中的视频

用手机看视频已经是人们习以为常的事情了&#xff0c;随着手机容量的增大&#xff0c;很多人选择把视频下载到手机本地观看&#xff0c;但是有些视频我们存放在电脑上&#xff0c;想用手机看怎么办呢&#xff1f;很多人选择把视频用数据线传输到手机上&#xff0c;但是这样略显…

苹果cms播放器不能全屏播放解决方法

声明&#xff1a;除特殊声明外本站文档均由作者原创&#xff0c;转载请注明出处&#xff0c;原文地址&#xff1a;苹果cms播放器不能全屏解决方法 如果播放器被包含在 iframe 里&#xff0c;尝试在 iframe 上添加 allowfullscreen 属性。 默认状态&#xff0c;<iframe>…

超级lrc播放器——全平台上的lrc歌词播放器

昨晚忙了一晚上&#xff0c;终于把《超级lrc播放器》上架了应用市场。 下面&#xff0c;总结一下&#xff0c;本次上架应用市场的经验&#xff1a; 一、上架苹果市场&#xff1a; 1.1、最好不要使用Electron&#xff0c;Electron上架Apple Store存在被拒的很大风险&#xff…

苹果cms设置本地播放器 ckplayer(版本:ckplayerx)

苹果cms设置本地播放器 ckplayer(版本:ckplayerx) 文章目录 苹果cms设置本地播放器 ckplayer(版本:ckplayerx)概述设置方法 各终端表现 概述 之前试过阿里云的 aliplayer、苹果cms自带的 dplayer,跟最新的 ckplayer比,个人体验ckplayer好很多。 设置方法 官网下载压缩包 压缩…

苹果cms v10版本整合ckplayer播放器

rt&#xff0c;安装了苹果cms v10 版本搭建影视系统&#xff0c;结果没有播放器按钮 解决问题方案一&#xff1a; 那是因为采集插件视频使用的播放器是ckplayer或者是被采集的网使用其他的播放器是自己没有添加进去&#xff0c;一样没有播放器按钮 不需要修改或者导入什么ck…

【学习日记2023.6.9】之 SpringCloud入门

文章目录 SpringCloud1. 认识微服务1.1 单体架构1.2 分布式架构1.3 微服务1.4 SpringCloud1.5 总结 2. 服务拆分和远程调用2.1 服务拆分原则2.2 服务拆分示例2.2.1 导入Sql语句2.2.2 导入demo工程 2.3 实现远程调用案例2.3.1 案例需求&#xff1a;2.3.2 注册RestTemplate2.3.3 …

刷脸登录(人工智能)

刷脸登录 理解刷脸登录的需求 理解刷脸登录的开发流程实现刷脸登录功能 浅谈人工智能 人工智能的概述 人工智能&#xff08;Artificial Intelligence&#xff09;&#xff0c;英文缩写为AI。它是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门…

在Spring Boot微服务使用JedisCluster操作Redis集群Hash哈希散列

记录&#xff1a;451 场景&#xff1a;在Spring Boot微服务使用JedisCluster操作Redis集群的Hash哈希散列数据类型。 版本&#xff1a;JDK 1.8,Spring Boot 2.6.3,redis-6.2.5,jedis-3.7.1。 1.微服务中配置Redis信息 1.1在pom.xml添加依赖 pom.xml文件&#xff1a; <…