1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #3170: WebRTC: Support WHIP(WebRTC-HTTP ingestion protocol). v4.0.262

This commit is contained in:
winlin 2022-09-06 18:21:17 +08:00
parent e0c8c199d5
commit 15610ca488
6 changed files with 192 additions and 51 deletions

View file

@ -505,6 +505,10 @@ srs_error_t SrsRtcServer::listen_api()
return srs_error_wrap(err, "handle publish");
}
if ((err = http_api_mux->handle("/rtc/v1/whip/", new SrsGoApiRtcWhip(this))) != srs_success) {
return srs_error_wrap(err, "handle whip");
}
#ifdef SRS_SIMULATOR
if ((err = http_api_mux->handle("/rtc/v1/nack/", new SrsGoApiRtcNACK(this))) != srs_success) {
return srs_error_wrap(err, "handle nack");