sdk在这里下载
播放mp4:
SewisePlayer.setup({
server: "live",
type: "mp4",
buffer: 5,
autostart: "true",
skin: "vodWhite",
lang: "zh_CN",
draggable: "true",
claritybutton: "disable",
videourl: "",
title: "switch"
}, "player");
SewisePlayer.playerReady(function(name){
SewisePlayer.toPlay("../../images/hangge.mp4", "", 0, true);
});
播放rtmp:
SewisePlayer.setup({
server: "live",
type: "rtmp",
buffer: 5,
autostart: "true",
skin: "liveWhite",
lang: "zh_CN",
draggable: "true",
claritybutton: "disable",
videourl: "",
title: "switch"
}, "player");
SewisePlayer.playerReady(function(name){
SewisePlayer.toPlay("rtmp://10.1.51.89/myapp/cv", "", 0, true);
});
更多例子可到这里下载源码:
https://github.com/jackzhang1204/sewise-player
其中demos中有各种格式视频的用法。