Class DataChannelBase
Inheritance
DataChannelBase
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.RenderStreaming.dll
Syntax
public abstract class DataChannelBase : MonoBehaviour, IDataChannel
Fields
label
Declaration
[SerializeField]
protected string label
Field Value
local
Declaration
[SerializeField]
protected bool local
Field Value
Properties
Channel
Declaration
public RTCDataChannel Channel { get; protected set; }
Property Value
Type |
Description |
RTCDataChannel |
|
ConnectionId
Declaration
public string ConnectionId { get; protected set; }
Property Value
IsConnected
Declaration
public bool IsConnected { get; }
Property Value
IsLocal
Declaration
public bool IsLocal { get; }
Property Value
Label
Declaration
public string Label { get; }
Property Value
OnStartedChannel
Declaration
public OnStartedChannelHandler OnStartedChannel { get; set; }
Property Value
OnStoppedChannel
Declaration
public OnStoppedChannelHandler OnStoppedChannel { get; set; }
Property Value
Methods
OnClose(string)
Declaration
protected virtual void OnClose(string connectionId)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
OnMessage(byte[])
Declaration
protected virtual void OnMessage(byte[] bytes)
Parameters
Type |
Name |
Description |
byte[] |
bytes |
|
OnOpen(string)
Declaration
protected virtual void OnOpen(string connectionId)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
Send(byte[])
Declaration
public virtual void Send(byte[] msg)
Parameters
Type |
Name |
Description |
byte[] |
msg |
|
Send(string)
Declaration
public virtual void Send(string msg)
Parameters
Type |
Name |
Description |
string |
msg |
|
SetChannel(string, RTCDataChannel)
Declaration
public virtual void SetChannel(string connectionId, RTCDataChannel channel)
Parameters
Type |
Name |
Description |
string |
connectionId |
|
RTCDataChannel |
channel |
|
SetChannel(SignalingEventData)
Declaration
public virtual void SetChannel(SignalingEventData data)
Parameters
Implements