mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Add demo for RTC
This commit is contained in:
parent
206d95879f
commit
becbe45bcd
34 changed files with 836 additions and 85 deletions
48
trunk/3rdparty/signaling/README.md
vendored
48
trunk/3rdparty/signaling/README.md
vendored
|
@ -4,21 +4,59 @@ WebRTC signaling for https://github.com/ossrs/srs
|
|||
|
||||
## Usage
|
||||
|
||||
Build and [run SRS](https://github.com/ossrs/srs/tree/4.0release#usage):
|
||||
[Run SRS](https://github.com/ossrs/srs/tree/4.0release#usage) in docker:
|
||||
|
||||
```bash
|
||||
git clone -b 4.0release https://gitee.com/ossrs/srs.git srs &&
|
||||
cd srs/trunk && ./configure && make && ./objs/srs -c conf/rtc.conf
|
||||
docker run --rm --env CANDIDATE=$(ifconfig en0 inet| grep 'inet '|awk '{print $2}') \
|
||||
-p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp \
|
||||
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:v4.0.95 \
|
||||
objs/srs -c conf/rtc.conf
|
||||
```
|
||||
|
||||
Build and run signaling:
|
||||
> Note: More images and version is [here](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/srs/images).
|
||||
|
||||
Run signaling in docker:
|
||||
|
||||
```bash
|
||||
cd srs/trunk/3rdparty/signaling && make && ./objs/signaling
|
||||
docker run --rm -p 1989:1989 registry.cn-hangzhou.aliyuncs.com/ossrs/signaling:v1.0.4
|
||||
```
|
||||
|
||||
> Note: More images and version is [here](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/signaling/images).
|
||||
|
||||
Open the H5 demos:
|
||||
|
||||
* [WebRTC: One to One over SFU(SRS)](http://localhost:1989/demos/one2one.html?autostart=true)
|
||||
|
||||
## Build from source
|
||||
|
||||
Build and [run SRS](https://github.com/ossrs/srs/tree/4.0release#usage):
|
||||
|
||||
```bash
|
||||
cd ~/git && git clone -b 4.0release https://gitee.com/ossrs/srs.git srs &&
|
||||
cd ~/git/srs/trunk && ./configure && make && ./objs/srs -c conf/rtc.conf
|
||||
```
|
||||
|
||||
Build and run signaling:
|
||||
|
||||
```bash
|
||||
cd ~/git/srs/trunk/3rdparty/signaling && make && ./objs/signaling
|
||||
```
|
||||
|
||||
Open demos by localhost: http://localhost:1989/demos
|
||||
|
||||
Build and run httpx-static for HTTPS/WSS:
|
||||
|
||||
```bash
|
||||
cd ~/git/srs/trunk/3rdparty/httpx-static && make &&
|
||||
./objs/httpx-static -http 80 -https 443 -ssk server.key -ssc server.crt \
|
||||
-proxy http://127.0.0.1:1989/sig -proxy http://127.0.0.1:1985/rtc \
|
||||
-proxy http://127.0.0.1:8080/
|
||||
```
|
||||
|
||||
Open demos by HTTPS or IP:
|
||||
|
||||
* http://localhost/demos/
|
||||
* https://localhost/demos/
|
||||
* https://192.168.3.6/demos/
|
||||
|
||||
Winlin 2021.05
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue