Camera Information System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.4 KiB

# Monibuca - 流媒体服务器
## 简介
开源Go语言流媒体服务器开发框架,https://m7s.live/。
## 下载
首页导航栏下载栏选择相应版本下载。([windows](https://m7s.live/bin/m7s_windows_amd64.tar.gz))
## 使用
### api
形如 http://127.0.0.0.1:8080 or http://192.168.1.119:8080
### 推拉流地址格式
首页最下方,推拉地址生成处,参考推拉流协议格式。一种协议拉流,即可多种协议取流。
具体参考 [rtsp 推拉地址形式](https://m7s.live/guide/plugins/rtsp.html#%E6%8E%A8%E6%8B%89%E5%9C%B0%E5%9D%80%E5%BD%A2%E5%BC%8F)。
### 具体推拉流流程(rtsp 拉流,其它协议取流)
```
# Step1: rtsp 拉流,参考 https://m7s.live/guide/plugins/rtsp.html#api
# 从远程拉取rtsp到m7s中:http://127.0.0.1:8080/rtsp/api/pull?target=[RTSP地址]&streamPath=[流标识]
# [RTSP地址] : rtsp://admin:hk123456@192.168.1.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1,可以从 cis 服务中的 onvif api 获取:"api/onvif/getStreamUrl"
# [流标识] : "live/test"->"appName/streamName"
# Step2: 判断是否拉流成功
# Step1 之后,服务器仅仅返回 ok,无法判断是否拉流。可以通过获取流信息中的 Tracks 是否为空进行判断。服务器经过一段时间检测可能会自动注销无法拉流的流,所以返回的流信息可能为空,要同时判断返回信息是否为空和 Tracks 是否为空。
# http://127.0.0.1:8080/api/stream?streamPath=live/test
# Step3: 其它协议取流,参考推拉流地址格式,https://m7s.live/
# 注意协议格式、ip、端口、appName、streamName
# rtsp : rtsp://127.0.0.1/live/test
# hls : http://127.0.0.1:8080/hls/live/test.m3u8
# hdl : http://localhost:8080/hdl/live/test.flv
# ws-flv : ws://localhost:8080/jessica/live/test.flv
# ws-raw : ws://localhost:8080/jessica/live/test
# Step4: 使用 Jessibuca 进行播放
# 经过短暂测试,使用 ws-flv 播放延时低,不卡顿。hls、hdl 效果一般。
```
# Jessibuca - 流媒体播放器
## 简介
纯H5直播流播放器,https://jessibuca.com/
## 下载
点击首页导航栏 DEMO 跳转页面,下滑到最新源码点击下载。([源码](https://jessibuca.com/dist.zip))
## 使用
解压缩包,在该文件夹根目录启动,进入 demo.html 页面,输入播放地址并播放即可查看效果,代码参考下载源码中 dist/demo.html
### api
https://jessibuca.com/api.html