1629191251-fadb4093d00f615

1、添加云转码视频系统播放器类型

打开海洋CMS/js/player文件夹添加一个云转码视频系统播放器文件,代码如下:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="./video.css">
<SCRIPT LANGUAGE="JavaScript1.2">
adTime=parent.adsTime;
chanceAd=1;
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById  &&  !ie);
adCount=0;
function initAd(){
if(!ns  &&  !ie  &&  !w3) return;
if(ie)             adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns)        adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3)        adDiv=eval('document.getElementById("sponsorAdDiv").style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
document.getElementById("zzzif").src=parent.adsPage;
document.getElementById("zzzif").height=parent.playerh + 10;
document.getElementById("zzzif").width=parent.playerw;
}
function showAd(){
if(adCount<adTime*10){adCount+=1;
if (ie){documentWidth  =document.body.offsetWidth/2+document.body.scrollLeft-20;
documentHeight =document.body.offsetHeight/2+document.body.scrollTop-20;}
else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;}
else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;}
adDiv.left=documentWidth-200;adDiv.top =documentHeight-200;
setTimeout("showAd()",100);}else closeAd();
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}
onload=initAd;
</script>
</head>
<body>
<div>
<iframe name="zzzif" src="" scrolling="no" frameborder="0"></iframe>
</div>
<div>
<div></div>
<div></div>
<div></div>
</div>
<div>
<div></div>
<div></div>
</div>
<script>
parent.video_diy();
var playerh=parent.playerh-33;
document.getElementById('player').innerHTML  = '<iframe src="'+parent.now+'" frameborder="0" allowfullscreen></iframe>';
</script>
</body>
</html>

文件命名为云转码视频系统.html

2、后台添加播放器类型

1629191251-3385a2959767c37

3、添加视频的时候复制列表的分享地址,选择云转码播放器即可

1629191251-709adb586168a2d

4、如果需要整合视频上传功能往下看。

打开文件/admin/templets/admin_video.htm把里面的服务器Ip替换为你的视频软件服务器ip

如果是其他版本要引入上传功能,在</head>前面添加以下代码:

<script src="/upload/js/jquery-1.11.2.min.js"></script>
<script language="javascript">
var ServerUrl = "http://云视频服务器地址:2000/uploads/";
$(document).ready(function(){
//$('[data-toggle="tooltip"]').tooltip()
var hostname = window.location.hostname
var port = window.location.port || '80';
ServerUrl = "http://云视频服务器地址:2000/uploads";
})
</script>
<link type="text/css" href="/upload/css/upload.css" />
<script type="text/javascript" src="/upload/js/webuploader.js"></script>
<script type="text/javascript" src="/upload/js/md5.js"></script>
<script type="text/javascript" src="/upload/js/haiyang.js"></script>
查找<?php if($cfg_user==1){?>

在前面添加上传按钮代码:

<tr><td  height="30">&nbsp;上传视频:</td>
<td>
<div>
<div>
<div>选择文件</div>
<div></div>
</div>  </div>
</div>  </div>
</td>
</tr>

5、修改软件返回的id值,让视频上传完成后自动返回信息给表单

文件里面凡是调用的css、js文件可以直接下载放到网站文件夹里面,文件包里面放了utf8和gbk两个编码版本,对照你网站的编码把css和js文件夹拿出来放到upload文件夹下面即可。

 

1629191251-aff2797bf4cd58f

文件里面凡是调用的css、js文件可以直接下载放到网站文件夹里面,文件包里面放了utf8和gbk两个编码版本,对照你网站的编码把css和js文件夹拿出来放到upload文件夹下面即可。

 

最新版修改教程。

下载的整合插件,返回share地址需要选择框架的播放器。

下载的整合插件,返回m3u8地址需要选择支持m3u8的播放器。

1629527595-502cc04f1df3b5d

1629527602-9197f46f7d3e7c3

1629527609-49eab103286e08d

如果需要替换

 

 

PPVOD【CPU授权】:500/1个月,1000/3个月,1500/6个月,2000/12个月 PPVOD【GPU授权】:700/1个月,6000/12个月 BTCDN:700/12个月 直播授权:2000/12个月 GPU授权用户需要WIN系统,必须N卡,算力最好6.0以上 CPU授权用户支持Windows/Linux系统,推荐使用Linux系统 购买地址:https://shop.mingchuang.cc/search/brand/3.html 注册用户购买不需要登记手机号码,游客登入需要登记手机号码。 请注意购买时间和续费时间需要在上班时间内完成,上班时间:上午9点至晚上9点。

在网站右侧就可以联系

https://www.ppvod.cc/soft/#soft

https://www.ppvod.cc/soft/#enclosure

https://www.ppvod.cc/soft/#introduce