代码拉取完成,页面将自动刷新
同步操作将从 Jack Zhang/sewise-player 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Support for jQuery HTML player skins.
Demos: Vod点播 | Live直播 | Flowplayer皮肤 | Fallback地址 | Bootstrap支持 | M3u8跨平台 | More更多
QQ交流群:237432172
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="../player/sewise.player.min.js?server=vod&type=mp4&videourl=http://www.w3schools.com/html/mov_bbb.mp4&sourceid=&autostart=true&starttime=0&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&title=VodVideo&buffer=5&skin=vodWhite"></script>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="http://219.232.161.202/libs/swfplayer/player/sewise.player.min.js?server=vod&sourceid=eQgPHj4N&autostart=true&starttime=0&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&buffer=5&skin=vodWhite"></script>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="../player/sewise.player.min.js?server=live&type=rtmp&streamurl=rtmp://219.232.161.204/livestream/mtzysunq&autostart=true&pid=&shifttime=&buffer=5&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&title=LiveVideo&skin=liveWhite"></script>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="http://219.232.161.204/libs/swfplayer/player/sewise.player.min.js?server=live&autostart=true&pid=vk5nx2cj&shifttime=&buffer=5&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&skin=liveWhite"></script>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="../player/sewise.player.min.js"></script>
<script type="text/javascript">
SewisePlayer.setup({
server: "vod",
type: "mp4",
videourl: "http://jackzhang1204.github.io/materials/mov_bbb.mp4",
skin: "vodWhite",
title: "Tile 标题",
lang: 'zh_CN',
fallbackurls:{
ogg: "http://jackzhang1204.github.io/materials/mov_bbb.ogg",
webm: "http://jackzhang1204.github.io/materials/mov_bbb.webm"
}
});
</script>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="../player/sewise.player.min.js?server=vod&type=mp4&videourl=http://www.w3schools.com/html/mov_bbb.mp4&sourceid=&autostart=true&starttime=0&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&title=VodVideo 点播标题&buffer=5&skin=vodWhite&fallbackurls=%7B%0A%09%22ogg%22%3A%20%22http%3A%2F%2Fwww.w3schools.com%2Fhtml%2Fmov_bbb.ogg%22%2C%0A%09%22webm%22%3A%20%22http%3A%2F%2Fwww.w3schools.com%2Fhtml%2Fmov_bbb.webm%22%0A%7D"></script>
</div>
<script>
//点播接口调用方法
function startPlay(){
SewisePlayer.doPlay();
}
function playPause(){
SewisePlayer.doPause();
}
function seekTo(){
SewisePlayer.doSeek(5);
}
function playStop(){
SewisePlayer.doStop();
}
function changeVolume(){
SewisePlayer.setVolume(0.1);
}
function getDuration(){
alert(SewisePlayer.duration());
}
function getPlayTime(){
alert(SewisePlayer.playTime());
}
// function switchProgram(){
// SewisePlayer.playProgram("xqfa3cZn", 0, true);
// }
function switchVideo(){
SewisePlayer.toPlay("http://media.w3.org/2010/05/sintel/trailer.mp4", "Sintel", 0, true);
}
//播放器回调方法
function playerReady(name){
console.log("Sewise Player On Ready 1");
//SewisePlayer.toPlay("http://www.w3school.com.cn/i/movie.mp4", "title", 0, false);
}
SewisePlayer.playerReady(function(name){
console.log("Sewise Player On Ready 2");
});
function onStart(name){
console.log("onStart 1");
}
SewisePlayer.onStart(function(name){
console.log("onStart 2");
});
function onStop(name){
console.log("onStop 1");
}
SewisePlayer.onStop(function(name){
console.log("onStop 2");
});
function onMetadata(meta, name){
console.log("onMetadata 1");
}
SewisePlayer.onMetadata(function(meta, name){
console.log("onMetadata 2");
});
function onClarity(clarity, name){
console.log("onClarity 1");
}
SewisePlayer.onClarity(function(clarity, name){
console.log("onClarity 2");
});
function onPause(name){
console.log("onPause 1");
}
SewisePlayer.onPause(function(name){
console.log("onPause 2");
});
function onSeek(time, name){
console.log("onSeek 1: " + time);
}
SewisePlayer.onSeek(function(time, name){
console.log("onSeek 2: " + time);
});
function onPlayTime(time, name){
console.log("onPlayTime 1: " + time);
}
SewisePlayer.onPlayTime(function(time, name){
console.log("onPlayTime 2: " + time);
});
function onBuffer(pt, name){
console.log("onBuffer 1: " + pt);
}
SewisePlayer.onBuffer(function(pt, name){
console.log("onBuffer 2: " + pt);
});
</script>
<div style="padding-top: 20px;">
<div style="padding-right: 20px;float: left;">[点播接口]</div>
<div style="padding-right: 20px;float: left;"><a href="javascript:startPlay();">播放</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:playPause();">暂停</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:seekTo();">跳转</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:playStop();">停止</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:changeVolume();">更改音量</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:getDuration();">获取总时长</a></div>
<div style="padding-right: 20px;float: left;"><a href="javascript:getPlayTime();">获取当前时间</a></div>
<!-- <div style="padding-right: 20px;float: left;"><a href="javascript:switchProgram();">切换节目</a></div> -->
<div style="padding-right: 20px;float: left;"><a href="javascript:switchVideo();">切换视频</a></div>
<br clear="all"/>
</div>
<div style="width: 640px; height: 360px; ">
<script type="text/javascript" src="http://219.232.161.204/libs/swfplayer/player/sewise.player.min.js?server=live&autostart=true&pid=vk5nx2cj
&shifttime=&buffer=5&lang=en_US&logo=http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png&skin=liveWhite"></script>
</div>
<script>
//直播接口调用方法
function startPlay(){
SewisePlayer.doPlay();
}
function playPause(){
SewisePlayer.doPause();
}
function seekTo(){
SewisePlayer.doSeek("20140224160520");
}
function playStop(){
SewisePlayer.doStop();
}
function livePlay(){
SewisePlayer.doLive();
}
function changeVolume(){
SewisePlayer.setVolume(0.3);
}
function getLiveTime(){
alert(SewisePlayer.liveTime());
}
function getPlayTime() {
alert(SewisePlayer.playTime());
}
function switchChannel(){
SewisePlayer.playChannel("br9anah3", "", true);
}
function switchStream(){
SewisePlayer.toPlay("rtmp://192.168.1.219/livestream/7gw3yt3h", "title", "", true);
}
//播放器回调方法
function playerReady(name){
console.log("Sewise Player On Ready 1");
//SewisePlayer.toPlay("http://www.w3school.com.cn/i/movie.mp4", "title", 0, false);
}
SewisePlayer.playerReady(function(name){
console.log("Sewise Player On Ready 2");
});
function onStart(name){
console.log("onStart 1");
}
SewisePlayer.onStart(function(name){
console.log("onStart 2");
});
function onStop(name){
console.log("onStop 1");
}
SewisePlayer.onStop(function(name){
console.log("onStop 2");
});
function onMetadata(meta, name){
console.log("onMetadata 1");
}
SewisePlayer.onMetadata(function(meta, name){
console.log("onMetadata 2");
});
function onClarity(clarity, name){
console.log("onClarity 1");
}
SewisePlayer.onClarity(function(clarity, name){
console.log("onClarity 2");
});
function onPause(name){
console.log("onPause 1");
}
SewisePlayer.onPause(function(name){
console.log("onPause 2");
});
function onSeek(time, name){
console.log("onSeek 1: " + time);
}
SewisePlayer.onSeek(function(time, name){
console.log("onSeek 2: " + time);
});
function onPlayTime(time, name){
console.log("onPlayTime 1: " + time);
}
SewisePlayer.onPlayTime(function(time, name){
console.log("onPlayTime 2: " + time);
});
function onBuffer(pt, name){
console.log("onBuffer 1: " + pt);
}
SewisePlayer.onBuffer(function(pt, name){
console.log("onBuffer 2: " + pt);
});
</script>
<div style="padding-top: 20px;">
<div style="padding-right: 15px;float: left;">[直播接口]</div>
<div style="padding-right: 15px;float: left;"><a href="javascript:startPlay();">播放</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:playPause();">暂停</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:seekTo();">跳转</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:playStop();">停止</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:livePlay();">直播</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:changeVolume();">更改音量</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:getLiveTime();">直播时间</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:getPlayTime();">播放时间</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:switchChannel();">切换频道</a></div>
<div style="padding-right: 15px;float: left;"><a href="javascript:switchStream();">切换流</a></div>
<br clear="all"/>
</div>
###更多例子
Sewise Player is licensed under the MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。