Skip to content

Commit

Permalink
完善注释和说明
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaoxi3000 committed Dec 17, 2019
1 parent e19e6cc commit ae4ae48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# gin-rtsp

## 测试
/stream/play
```
{
"url":"rtsp://admin:admin@192.168.1.11:554/cam/realmonitor?channel=1&subtype=0"
}
```

## 参考
[JSMpeg – MPEG1 Video & MP2 Audio Decoder in JavaScript](https://github.com/phoboslab/jsmpeg/)
1 change: 1 addition & 0 deletions service/rtsptrans.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (service *RTSPTransSrv) Service() *serializer.Response {
}
}

// 多个客户端需要播放相同的RTSP流地址时,保证返回WebSocket地址相同
processCh := uuid.NewV3(uuid.NamespaceURL, splitList[1]).String()
if ch, ok := processMap.Load(processCh); ok {
*ch.(*chan int) <- 1
Expand Down

0 comments on commit ae4ae48

Please sign in to comment.