1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00
srs/trunk/3rdparty/signaling
2021-11-14 13:48:48 +08:00
..
auto Tools: Sync 3rdparty tools 2021-05-03 10:05:45 +08:00
vendor Add one to one demo. 4.0.96 2021-05-02 19:35:03 +08:00
www Fix #2732: WebRTC: Fail to publish RTC automatically for HTML5. 2021-11-14 13:48:48 +08:00
.gitignore 3rdparty: Sync httpx-static 2021-10-10 11:37:19 +08:00
Dockerfile Tools: Sync 3rdparty tools 2021-05-03 10:05:45 +08:00
go.mod Add one to one demo. 4.0.96 2021-05-02 19:35:03 +08:00
go.sum Add one to one demo. 4.0.96 2021-05-02 19:35:03 +08:00
LICENSE Add one to one demo. 4.0.96 2021-05-02 19:35:03 +08:00
main.go Tools: Add video room demo 2021-05-04 10:46:56 +08:00
Makefile Add one to one demo. 4.0.96 2021-05-02 19:35:03 +08:00
README.md Use 4.0 docker srs:4 2021-08-08 00:24:01 +08:00

signaling

WebRTC signaling for https://github.com/ossrs/srs

Usage

Run SRS in docker:

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:4 \
  objs/srs -c conf/rtc.conf

Note: More images and version is here.

Run signaling in docker:

docker run --rm -p 1989:1989 registry.cn-hangzhou.aliyuncs.com/ossrs/signaling:v1.0.4

Note: More images and version is here.

Open the H5 demos:

Build from source

Build and run SRS:

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:

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:

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:

Winlin 2021.05