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

RTC: Enable track of player when init done.

This commit is contained in:
winlin 2020-08-03 12:49:12 +08:00
parent 8aa20d390e
commit 0eae1bd493
6 changed files with 55 additions and 2 deletions

View file

@ -413,6 +413,10 @@ srs_error_t SrsRtcServer::do_create_session(
if ((err = session->add_player(req, remote_sdp, local_sdp)) != srs_success) {
return srs_error_wrap(err, "add player");
}
// TODO: FIXME: Handle error.
// All tracks default as inactive, so we must enable them.
session->set_play_track_status(true);
}
std::string local_pwd = srs_random_str(32);