Class RTCPeerConnection
Represents a WebRTC connection between the local peer and remote peer.
Implements
Inherited Members
Namespace: Unity.WebRTC
Assembly: solution.dll
Syntax
public class RTCPeerConnection : IDisposable
Constructors
Name | Description |
---|---|
RTCPeer |
This constructor creates an instance of peer connection with a default configuration. |
RTCPeer |
This constructor creates an instance of peer connection with a configuration provided by user. An RTCConfiguration object providing options to configure the new connection. |
Properties
Name | Description |
---|---|
Connection |
The readonly property of the RTCPeer |
Current |
|
Current |
|
Ice |
The readonly property of the RTCPeer |
Local |
|
On |
|
On |
|
On |
This property is delegate to be called when the Ice |
On |
|
On |
|
Pending |
|
Pending |
|
Remote |
|
Signaling |
The readonly property of the RTCPeer |
Methods
Name | Description |
---|---|
Add |
|
Add |
|
Add |
|
Add |
|
Close() | |
Create |
Create an SDP (Session Description Protocol) answer to start a new connection to a remote peer. |
Create |
Creates a new data channel related the remote peer. |
Create |
Create an SDP (Session Description Protocol) offer to start a new connection to a remote peer. |
Dispose() | |
~RTCPeer |
|
Get |
Returns an object which indicates the current configuration
of the RTCPeer |
Get |
Returns array of objects each of which represents one RTP receiver. |
Get |
Returns array of objects each of which represents one RTP sender. |
Get |
Returns an AsyncOperation which resolves with data providing statistics. |
Get |
Returns array of objects each of which represents one RTP transceiver. |
Remove |
|
Set |
This method sets the current configuration of the RTCPeer |
Set |
This method changes the session description of the local connection to negotiate with other connections. |
Set |
This method changes the session description of the remote connection to negotiate with local connections. |