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:
parent
8aa20d390e
commit
0eae1bd493
6 changed files with 55 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue