Class WebSocketSignaling
Inheritance
WebSocketSignaling
Assembly: Unity.RenderStreaming.dll
Syntax
public class WebSocketSignaling : ISignaling
Constructors
WebSocketSignaling(SignalingSettings, SynchronizationContext)
Declaration
public WebSocketSignaling(SignalingSettings signalingSettings, SynchronizationContext mainThreadContext)
Parameters
Properties
Url
Declaration
public string Url { get; }
Property Value
Methods
CloseConnection(string)
Declaration
public void CloseConnection(string connectionId)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
~WebSocketSignaling()
Declaration
protected ~WebSocketSignaling()
OpenConnection(string)
Declaration
public void OpenConnection(string connectionId)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
SendAnswer(string, RTCSessionDescription)
Declaration
public void SendAnswer(string connectionId, RTCSessionDescription answer)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
RTCSessionDescription |
answer |
|
SendCandidate(string, RTCIceCandidate)
Declaration
public void SendCandidate(string connectionId, RTCIceCandidate candidate)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
RTCIceCandidate |
candidate |
|
SendOffer(string, RTCSessionDescription)
Declaration
public void SendOffer(string connectionId, RTCSessionDescription offer)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
RTCSessionDescription |
offer |
|
Start()
Declaration
Stop()
Declaration
Events
OnAnswer
Declaration
public event OnAnswerHandler OnAnswer
Event Type
OnCreateConnection
Declaration
public event OnConnectHandler OnCreateConnection
Event Type
OnDestroyConnection
Declaration
public event OnDisconnectHandler OnDestroyConnection
Event Type
OnIceCandidate
Declaration
public event OnIceCandidateHandler OnIceCandidate
Event Type
OnOffer
Declaration
public event OnOfferHandler OnOffer
Event Type
OnStart
Declaration
public event OnStartHandler OnStart
Event Type
Implements