mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Set tracks to active for publisher
This commit is contained in:
parent
dd13889772
commit
c659098f71
6 changed files with 84 additions and 15 deletions
|
@ -414,12 +414,11 @@ 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_all_tracks_status_for_play(true);
|
||||
}
|
||||
|
||||
// All tracks default as inactive, so we must enable them.
|
||||
session->set_all_tracks_status(true);
|
||||
|
||||
std::string local_pwd = srs_random_str(32);
|
||||
std::string local_ufrag = "";
|
||||
// TODO: FIXME: Rename for a better name, it's not an username.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue