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
|
@ -1756,9 +1756,11 @@ SrsRtpPacket2* SrsRtcSendTrack::fetch_rtp_packet(uint16_t seq)
|
|||
}
|
||||
|
||||
// TODO: FIXME: Should refine logs, set tracks in a time.
|
||||
void SrsRtcSendTrack::set_track_status(bool active)
|
||||
bool SrsRtcSendTrack::set_track_status(bool active)
|
||||
{
|
||||
bool previous_status = track_desc_->is_active_;
|
||||
track_desc_->is_active_ = active;
|
||||
return previous_status;
|
||||
}
|
||||
|
||||
bool SrsRtcSendTrack::get_track_status()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue