搭建网络视频直播系统SRS服务器
基于源码的方式在Linux中安装srs服务器.
使用git克隆源码.
git clone
下载完成进入trunk目录
cd srs.oschina/trunk
3.执行编译安装
./configure && make
编译成功如下:
4.启动
./objs/srs -c conf/srs.conf
启动成功:
OBS配置:
可以从视频获取设备:
如图:
点击小眼睛可关闭:
可以显示捕捉等:
还有很多类似的乱七八糟的功能。
最主要的功能是,设置网络视频直播系统推流:
通常是网络视频直播系统服务器的地址加上项目名称.
这里还可以显示保存等等.
aliplayer使用.
引入使用:
html>
Aliplayer Functionsvar player = new Aliplayer({
id: "player-con",
source: "//player.alicdn.com/video/editor.mp4",
width: "100%",
height: "500px",
cover: '
/* To set an album art, you must set 'autoplay' and 'preload' to 'false' */
autoplay: false,
preload: false,
isLive: false
}, function (player) {
console.log("The player is created");
});
————————————————
声明:本文由云豹科技转发自
x.1000001000博客,如有侵权请联系作者删除