mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '4.0release' into develop
This commit is contained in:
commit
6d18093e16
8 changed files with 67 additions and 35 deletions
|
@ -469,10 +469,16 @@ srs_error_t SrsRtcServer::listen_api()
|
|||
return srs_error_wrap(err, "handle publish");
|
||||
}
|
||||
|
||||
// Generally, WHIP is a publishing protocol, but it can be also used as playing.
|
||||
if ((err = http_api_mux->handle("/rtc/v1/whip/", new SrsGoApiRtcWhip(this))) != srs_success) {
|
||||
return srs_error_wrap(err, "handle whip");
|
||||
}
|
||||
|
||||
// We create another mount, to support play with the same query string as publish.
|
||||
if ((err = http_api_mux->handle("/rtc/v1/whip-play/", new SrsGoApiRtcWhip(this))) != srs_success) {
|
||||
return srs_error_wrap(err, "handle whip play");
|
||||
}
|
||||
|
||||
#ifdef SRS_SIMULATOR
|
||||
if ((err = http_api_mux->handle("/rtc/v1/nack/", new SrsGoApiRtcNACK(this))) != srs_success) {
|
||||
return srs_error_wrap(err, "handle nack");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue