admin 管理员组文章数量: 887021
github html5视频直播,GitHub
//点播接口调用方法
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(".mp4", "Sintel", 0, true);
}
//播放器回调方法
function playerReady(name){
console.log("Sewise Player On Ready 1");
//SewisePlayer.toPlay(".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);
});
[点播接口] 播放 暂停 跳转 停止 更改音量 获取总时长 获取当前时间 切换视频本文标签: github html5视频直播 GitHub
版权声明:本文标题:github html5视频直播,GitHub 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1699000436h323010.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论