mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine cid for session
This commit is contained in:
parent
c9c34b54a7
commit
d2984ea49c
3 changed files with 13 additions and 13 deletions
|
@ -1462,11 +1462,12 @@ void SrsRtcPublishStream::update_send_report_time(uint32_t ssrc, const SrsNtp& n
|
|||
}
|
||||
}
|
||||
|
||||
SrsRtcConnection::SrsRtcConnection(SrsRtcServer* s)
|
||||
SrsRtcConnection::SrsRtcConnection(SrsRtcServer* s, SrsContextId context_id)
|
||||
{
|
||||
req = NULL;
|
||||
is_publisher_ = false;
|
||||
encrypt = true;
|
||||
cid = context_id;
|
||||
|
||||
source_ = NULL;
|
||||
publisher_ = NULL;
|
||||
|
@ -1672,13 +1673,12 @@ srs_error_t SrsRtcConnection::add_player2(SrsRequest* req, SrsSdp& local_sdp)
|
|||
return err;
|
||||
}
|
||||
|
||||
srs_error_t SrsRtcConnection::initialize(SrsRtcStream* source, SrsRequest* r, bool is_publisher, string username, SrsContextId context_id)
|
||||
srs_error_t SrsRtcConnection::initialize(SrsRtcStream* source, SrsRequest* r, bool is_publisher, string username)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
username_ = username;
|
||||
req = r->copy();
|
||||
cid = context_id;
|
||||
is_publisher_ = is_publisher;
|
||||
source_ = source;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue