mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Eable leave connection
This commit is contained in:
@@ -31,6 +31,9 @@ class PeerConnection {
|
||||
~PeerConnection();
|
||||
|
||||
public:
|
||||
int Init(PeerConnectionParams params, const std::string &transmission_id,
|
||||
const std::string &user_id);
|
||||
|
||||
int Create(PeerConnectionParams params,
|
||||
const std::string &transmission_id = "",
|
||||
const std::string &user_id = "");
|
||||
@@ -38,6 +41,8 @@ class PeerConnection {
|
||||
int Join(PeerConnectionParams params, const std::string &transmission_id,
|
||||
const std::string &user_id = "");
|
||||
|
||||
int Leave();
|
||||
|
||||
int Destroy();
|
||||
|
||||
SignalStatus GetSignalStatus();
|
||||
@@ -47,9 +52,6 @@ class PeerConnection {
|
||||
int SendUserData(const char *data, size_t size);
|
||||
|
||||
private:
|
||||
int Init(PeerConnectionParams params, const std::string &transmission_id,
|
||||
const std::string &user_id);
|
||||
|
||||
int CreateVideoCodec(bool hardware_acceleration);
|
||||
|
||||
void ProcessSignal(const std::string &signal);
|
||||
|
||||
Reference in New Issue
Block a user