Class WebRTCSignalingClient
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Provides the ability to control WebRTCSignalingClient.
C#Copypublic class WebRTCSignalingClient : IDisposable
- Inheritance
-
WebRTCSignalingClient
Constructors
View Source
WebRTCSignalingClient(String, Int32)
Initializes a new instance of the WebRTCSignalingClient class.
Declaration
C#Copypublic WebRTCSignalingClient(string serverIp, int port)
Parameters
Type | Name | Description |
---|---|---|
String | serverIp | The server IP. |
Int32 | port | The server port. |
See Also
Methods
Declaration
C#Copypublic Task<int> Connect()
Returns
Type | Description |
---|---|
Task<Int32> | The signaling client ID. |
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected 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. |
Declaration
C#Copypublic void RequestSession(int peerId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | peerId | The ID of remote peer. |
Declaration
C#Copypublic 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#Copypublic event EventHandler<WebRTCSignalingEventArgs> SignalingMessage
Event Type
Type | Description |
---|---|
EventHandler<WebRTCSignalingEventArgs> |