mirror of
https://github.com/cnotch/ipchub.git
synced 2025-09-26 19:41:18 +08:00
update docs
This commit is contained in:
@@ -21,18 +21,14 @@
|
||||
]
|
||||
```
|
||||
我们配置了两个路由:
|
||||
+ /group/door
|
||||
+ /group/door : 集团大门直接连接到摄像头
|
||||
+ /hr/ : 人力资源部门的摄像头路由到下级的服务器
|
||||
假设下级服务器有 /door/video1 和 /door/video2 两个摄像头,那么你可以通过 .../hr/door/video1 和 .../hr/door/video2 访问它们。
|
||||
|
||||
集团大门直接连接到摄像头
|
||||
+ /hr/
|
||||
|
||||
人力资源部门的摄像头路由到下级的服务器中;hr的服务器包含:/door/video1和/door/video2
|
||||
|
||||
## 3. 使用
|
||||
## 3. 访问流媒体
|
||||
服务器提供了多种访问终端摄像头的方式,包括:
|
||||
+ rtsp
|
||||
+ websocket-rtsp
|
||||
+ wsp(websocket 代理模式)
|
||||
+ http-flv
|
||||
+ websocket-flv
|
||||
+ http-hls
|
||||
@@ -57,20 +53,16 @@ rtsp://localhost:1554/hr/door/video1 请求在服务器内自动变成去拉取r
|
||||
打开demo地址:http://localhost:1554/demos/rtsp
|
||||
输入:ws://localhost:1554/ws/group/door 即可访问
|
||||
|
||||
### 3.3 使用wsp访问
|
||||
和上面一样,打开demo地址:http://localhost:1554/demos/wsp
|
||||
输入:rtsp://localhost:1554/group/door 即可访问
|
||||
|
||||
### 3.4 使用http-flv访问
|
||||
### 3.3 使用http-flv访问
|
||||
打开demo地址:http://localhost:1554/demos/flv
|
||||
输入:http://locaolhost:1554/streams/group/door.flv 即可访问
|
||||
由于 Chrome 对长连接的流限制为6个,因此如果使用 Chrome 打开更多建议使用websocket-flv
|
||||
|
||||
### 3.5 使用 websocket-flv访问
|
||||
### 3.4 使用 websocket-flv访问
|
||||
打开demo地址:http://localhost:1554/demos/flv
|
||||
输入:ws://locaolhost:1554/ws/group/door.flv 即可访问
|
||||
|
||||
### 3.6 使用 http-hls访问
|
||||
### 3.5 使用 http-hls访问
|
||||
由于 iOS的Safari不支持上述任何http访问模式,请使用 http-hls
|
||||
在浏览器输入: http://localhost:1554/streams/group/door.m3m8 即可访问
|
||||
**注意:** 由于http-hls的段文件默认被放在内存中,占用大量的内存;如系统内存不足,请配置存储路径。
|
||||
@@ -81,10 +73,10 @@ rtsp://localhost:1554/hr/door/video1 请求在服务器内自动变成去拉取r
|
||||
输入:http://locaolhost:1554/streams/group/door.flv?token=7f97509e321a18ccf281607f4c0bd4fb
|
||||
其中 token 通过登录api获得
|
||||
|
||||
对于配置用户,参考配置和Api文档
|
||||
相关信息请参考[配置文档](config.md) 和 [Api 文档](apis.md)
|
||||
|
||||
## 5. 浏览器支持情况
|
||||
wsp、http-flv、websocket-flv等浏览器访问,支持:
|
||||
http-flv、websocket-flv等浏览器访问,支持:
|
||||
+ Firefox v.42+
|
||||
+ Chrome v.23+
|
||||
+ OSX Safari v.8+
|
||||
|
Reference in New Issue
Block a user