srs/trunk/3rdparty/signaling
Winlin 460412c4b5
Move build output to bin/, replace godotenv with custom .env parser, and update docs. v7.0.143 (#4661)
- Move build output from `./srs-proxy` to `bin/srs-proxy` following Go
project conventions, updating Makefile, .gitignore, and all
documentation references
- Replace third-party `godotenv` dependency with a custom `.env` parser
that supports comments, `export` prefix, quoted values, escape
sequences, and inline comments — with full unit tests
- Remove `ignore-worklog.md` and update `README.md` with skill-based AI
prompts
- Bump copyright year from 2025 to 2026 across all source files

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:26:33 -04:00
..
auto Refine the signaling dynamic images. 2022-05-16 22:24:27 +08:00
vendor AI: Remove deprecated SrsRtcPublisherAsync and SrsRtcPlayerAsync use WHIP/WHEP. 2025-10-26 10:00:05 -04:00
www AI: Remove deprecated SrsRtcPublisherAsync and SrsRtcPlayerAsync use WHIP/WHEP. 2025-10-26 10:00:05 -04:00
.gitignore Refine the signaling dynamic images. 2022-05-16 22:24:27 +08:00
Dockerfile fix crash issue caused by reload configuration file. v7.0.98 (#4530) 2025-10-16 07:30:16 -04:00
go.mod SquashSRS4: Add one to one RTC demo. 2021-05-02 21:46:41 +08:00
go.sum SquashSRS4: Add one to one RTC demo. 2021-05-02 21:46:41 +08:00
LICENSE SquashSRS4: Add one to one RTC demo. 2021-05-02 21:46:41 +08:00
main.go Move build output to bin/, replace godotenv with custom .env parser, and update docs. v7.0.143 (#4661) 2026-04-12 14:26:33 -04:00
Makefile SquashSRS4: Add one to one RTC demo. 2021-05-02 21:46:41 +08:00
README.md Update 3rdparty. 2022-05-16 22:37:22 +08:00

signaling

A demo 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:1

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