AppDefinedSource
Class that represents an app defined source that can be used by the MLWebRTC API. More...
Inherits from:
Track
Inherited by:
UnityEngine.XR.MagicLeap.MLWebRTC.AppDefinedAudioSource,
UnityEngine.XR.MagicLeap.MLWebRTC.AppDefinedVideoSource
Detailed Description
public class AppDefinedSource : Track
Details*
Class that represents a source used by the MLWebRTC API.
Public Methods
AppDefinedSource
public AppDefinedSource(
string trackId
)
Parameters
Type | Name | Description |
---|---|---|
string | trackId |
Protected Methods
OnSourceDestroy
Instance method that is called when the source is destroyed via MLWebRTC.MediaStream.Track.DestroyLocal() .
protected virtual abstract void OnSourceDestroy()
Reimplemented by: OnSourceDestroy
OnSourceSetEnabled
Instance method that is called when the source is enabled or disabled via MLWebRTC.MediaStream.Track.SetEnabled()
protected virtual abstract void OnSourceSetEnabled(
bool enabled
)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled | True if enabled. |
Reimplemented by: OnSourceSetEnabled
Protected Attributes
gcHandle
Gets the GCHandle of this managed object.
protected GCHandle gcHandle;