Class WebRTCSignalingClient

Definition

Namespace:
Tizen.Multimedia.Remoting
Assembly:
Tizen.Multimedia.Remoting.dll

Provides the ability to control WebRTCSignalingClient.

C#
Copy
public class WebRTCSignalingClient : IDisposable
Inheritance
WebRTCSignalingClient

Constructors

View Source

WebRTCSignalingClient(String, Int32)

Initializes a new instance of the WebRTCSignalingClient class.

Declaration
C#
Copy
public WebRTCSignalingClient(string serverIp, int port)
Parameters
Type Name Description
String serverIp

The server IP.

Int32 port

The server port.

See Also

Methods

View Source

Connect()

Connect to signaling server and return client id.

Declaration
C#
Copy
public Task<int> Connect()
Returns
Type Description
Task<Int32>

The signaling client ID.

View Source

Dispose()

Releases all resources used by the current instance.

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(Boolean)

Releases the unmanaged resources used by the WebRTCSignalingClient.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

View Source

RequestSession(Int32)

Requests session with peer ID.

Declaration
C#
Copy
public void RequestSession(int peerId)
Parameters
Type Name Description
Int32 peerId

The ID of remote peer.

View Source

SendMessage(String)

Sends the signaling message to remote peer.

Declaration
C#
Copy
public void SendMessage(string message)
Parameters
Type Name Description
String message

Events

View Source

SignalingMessage

Occurs when a message to be handled is sent from the remote peer or the signaling server.

Declaration
C#
Copy
public event EventHandler<WebRTCSignalingEventArgs> SignalingMessage
Event Type
Type Description
EventHandler<WebRTCSignalingEventArgs>

Extension Methods