Class MediaTrackSource
Base class for media track source components producing some media frames locally.
Namespace: Microsoft.MixedReality.WebRTC.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class MediaTrackSource : MonoBehaviour
Properties
IsLive
Indicates if the source is currently producing frames.
Declaration
public abstract bool IsLive { get; }
Property Value
Type | Description |
---|---|
Boolean |
MediaKind
Media kind of the track source.
Declaration
public abstract MediaKind MediaKind { get; }
Property Value
Type | Description |
---|---|
MediaKind |
MediaLines
List of audio media lines using this source.
Declaration
public IReadOnlyList<MediaLine> MediaLines { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<MediaLine> |
Remarks
Note that a connected MediaLine will be added to this only if the owning PeerConnection is awake. A MediaLine will be automatically removed if the owning PeerConnection is destroyed.
Methods
AttachToMediaLines()
Declaration
protected void AttachToMediaLines()
DetachFromMediaLines()
Declaration
protected void DetachFromMediaLines()