代码拉取完成,页面将自动刷新
SewisePlayer.doPlay();
SewisePlayer.doPause();
SewisePlayer.doStop();
SewisePlayer.doSeek(20);
SewisePlayer.doSeek("20130503123055");
SewisePlayer.toPlay("http://192.168.1.219:5080/flvseek/data/26144610yg.flv","深圳卫视", 20, true);
SewisePlayer.toPlay("rtmp://192.168.1.219/livestream/6jzcdjgi", "深圳卫视", "20130927150000", true);
SewisePlayer.setVolume(0.5);
SewisePlayer.playTime();
SewisePlayer.fullScreen();
SewisePlayer.noramlScreen();
SewisePlayer.bufferProgress();
SewisePlayer.playProgram("jCAH3SAY", 20, true);
SewisePlayer.duration();
SewisePlayer.doLive();
SewisePlayer.playChannel("y894tgf3", "20130503123456", true);
SewisePlayer.liveTime();
SewisePlayer.setDuration(645);
function playerReady(id) {
SewisePlayer.doSeek(10);
}
或
SewisePlayer.playerReady(function(id){
SewisePlayer.doSeek(10);
});
function onStart(id){
console.log("play start 1")
}
或
SewisePlayer.onStart(function(id){
console.log("play start 2");
});
function onPause(id){
console.log("play pause 1")
}
或
SewisePlayer.onPause(function(id){
console.log("play pause 2");
});
function onStop(id){
console.log("play stopped 1")
}
或
SewisePlayer.onStop(function(id){
console.log("play stopped 2");
});
function onSeek(time, id){
console.log("play seek 1: " + time)
}
或
SewisePlayer.onSeek(function(time, id){
console.log("play seek 2: " + time);
});
function onPlayTime(time, id){
console.log("onPlayTime 1: " + time);
}
或
SewisePlayer.onPlayTime(function(time, id){
console.log("onPlayTime 2: " + time);
});
function onMetadata(meta, id){
console.log("onMetadata 1");
}
或
SewisePlayer.onMetadata(function(meta, id){
console.log("onMetadata 2");
});
function onClarity(clarity, id){
console.log(clarity.id + "\n" + clarity.name + '\n' + clarity.videoUrl);
}
或
SewisePlayer.onClarity(function(clarity, id){
console.log(clarity.id + "\n" + clarity.name + '\n' + clarity.videoUrl);
});
function onBuffer(pt, id){
console.log("onBuffer 1: " + pt);
}
或
SewisePlayer.onBuffer(function(pt, id){
console.log("onBuffer 2: " + pt);
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。