Skip to main content
Version: 20 Mar 2024

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

TypeNameDescription
stringtrackId

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

TypeNameDescription
boolenabledTrue if enabled.

Reimplemented by: OnSourceSetEnabled


Protected Attributes

gcHandle

Gets the GCHandle of this managed object.


protected GCHandle gcHandle;