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
|
@ -337,7 +337,7 @@ private:
|
|||
// Simulators.
|
||||
int nn_simulate_player_nack_drop;
|
||||
public:
|
||||
SrsRtcConnection(SrsRtcServer* s);
|
||||
SrsRtcConnection(SrsRtcServer* s, SrsContextId context_id);
|
||||
virtual ~SrsRtcConnection();
|
||||
public:
|
||||
// TODO: FIXME: save only connection info.
|
||||
|
@ -360,7 +360,7 @@ public:
|
|||
srs_error_t add_player2(SrsRequest* request, SrsSdp& local_sdp);
|
||||
public:
|
||||
// Before initialize, user must set the local SDP, which is used to inititlize DTLS.
|
||||
srs_error_t initialize(SrsRtcStream* source, SrsRequest* r, bool is_publisher, std::string username, SrsContextId context_id);
|
||||
srs_error_t initialize(SrsRtcStream* source, SrsRequest* r, bool is_publisher, std::string username);
|
||||
// The peer address may change, we can identify that by STUN messages.
|
||||
srs_error_t on_stun(SrsUdpMuxSocket* skt, SrsStunPacket* r);
|
||||
srs_error_t on_dtls(char* data, int nb_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue