Class PeerConnection
A peer connection.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class PeerConnection : ManagedConnection
Properties
RemoteClientInfo
Gets the remote client information.
Declaration
public ClientInfo RemoteClientInfo { get; }
Property Value
Type | Description |
---|---|
ClientInfo |
Role
Gets the role.
Declaration
public PeerRole Role { get; }
Property Value
Type | Description |
---|---|
PeerRole |
Methods
DetachInternalEventHandlers()
Detaches internal event handlers.
Declaration
protected override void DetachInternalEventHandlers()
Overrides
DoCreateCandidateMessage(Candidate)
Creates a candidate message.
Declaration
protected override Message DoCreateCandidateMessage(Candidate candidate)
Parameters
Type | Name | Description |
---|---|---|
Candidate | candidate | The candidate. |
Returns
Type | Description |
---|---|
Message |
Overrides
DoCreateCloseMessage()
Creates a close message.
Declaration
protected override Message DoCreateCloseMessage()
Returns
Type | Description |
---|---|
Message |
Overrides
DoCreateUpdateMessage(ConnectionConfig)
Creates an update message.
Declaration
protected override Message DoCreateUpdateMessage(ConnectionConfig config)
Parameters
Type | Name | Description |
---|---|---|
ConnectionConfig | config | The connection config. |
Returns
Type | Description |
---|---|
Message |
Overrides
DoOpen()
Opens the connection.
Declaration
protected override void DoOpen()
Overrides
DoProcessMessage(Message)
Processes a message.
Declaration
protected override void DoProcessMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message. |
Overrides
IsMediaDirectionAllowed(String)
Gets a value indicating whether the given media direction is allowed for this connection.
Declaration
protected override bool IsMediaDirectionAllowed(string direction)
Parameters
Type | Name | Description |
---|---|---|
System.String | direction | The direction. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
ProcessAnswer(Message)
Processes an answer.
Declaration
protected override void ProcessAnswer(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message. |
Overrides
ProcessError(Message)
Processes an error message.
Declaration
protected override void ProcessError(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message. |
Overrides
Send(Message)
Sends a message.
Declaration
protected override Future<Message> Send(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message. |
Returns
Type | Description |
---|---|
Future<Message> |