Class WebRTCSignalingClient
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Provides the ability to control WebRTCSignalingClient.
public class WebRTCSignalingClient : IDisposable
- Inheritance
-
objectWebRTCSignalingClient
Constructors
View SourceWebRTCSignalingClient(string, int)
Initializes a new instance of the WebRTCSignalingClient class.
Declaration
public WebRTCSignalingClient(string serverIp, int port)
Parameters
Type | Name | Description |
---|---|---|
string | serverIp | The server IP. |
int | port | The server port. |
See Also
Methods
View SourceConnect()
Connect to signaling server and return client id.
Declaration
public Task<int> Connect()
Returns
Type | Description |
---|---|
Task<><int> | The signaling client ID. |
Dispose()
Releases all resources used by the current instance.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the WebRTCSignalingClient.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
RequestSession(int)
Requests session with peer ID.
Declaration
public void RequestSession(int peerId)
Parameters
Type | Name | Description |
---|---|---|
int | peerId | The ID of remote peer. |
SendMessage(string)
Sends the signaling message to remote peer.
Declaration
public void SendMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Events
View SourceSignalingMessage
Occurs when a message to be handled is sent from the remote peer or the signaling server.
Declaration
public event EventHandler<WebRTCSignalingEventArgs> SignalingMessage
Event Type
Type | Description |
---|---|
EventHandler<><WebRTCSignalingEventArgs> |