Class DataChannelBase
Inherited Members
UnityEngine.Component.GetComponentInParent(System.Type, System.Boolean)
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
Namespace: Unity.RenderStreaming
Syntax
public abstract class DataChannelBase : MonoBehaviour, IDataChannel
Fields
label
Declaration
[SerializeField]
protected string label
Field Value
Type | Description |
---|---|
String |
local
Declaration
[SerializeField]
protected bool local
Field Value
Type | Description |
---|---|
Boolean |
Properties
Channel
Declaration
public RTCDataChannel Channel { get; protected set; }
Property Value
Type | Description |
---|---|
RTCDataChannel |
Implements
ConnectionId
Declaration
public string ConnectionId { get; protected set; }
Property Value
Type | Description |
---|---|
String |
Implements
IsConnected
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
IsLocal
Declaration
public bool IsLocal { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
Label
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
String |
Implements
OnStartedChannel
Declaration
public OnStartedChannelHandler OnStartedChannel { get; set; }
Property Value
Type | Description |
---|---|
OnStartedChannelHandler |
OnStoppedChannel
Declaration
public OnStoppedChannelHandler OnStoppedChannel { get; set; }
Property Value
Type | Description |
---|---|
OnStoppedChannelHandler |
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 |
Implements
SetChannel(SignalingEventData)
Declaration
public virtual void SetChannel(SignalingEventData data)
Parameters
Type | Name | Description |
---|---|---|
SignalingEventData | data |