当前位置: 首页 > 工具软件 > sewise > 使用案例 >

sewise视频直播

索梓
2023-12-01

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中有各种格式视频的用法。

 类似资料: