MixedReality-WebRTC MixedReality-WebRTC
Search Results for

    Show / Hide Table of Contents

    Class AudioTrackSource

    Audio source for WebRTC audio tracks.

    The audio source is not bound to any peer connection, and can therefore be shared by multiple audio tracks from different peer connections. This is especially useful to share local audio capture devices (microphones) amongst multiple peer connections when building a multi-peer experience with a mesh topology (one connection per pair of peers).

    The user owns the audio track source, and is in charge of keeping it alive until after all tracks using it are destroyed, and then dispose of it. The behavior of disposing of the track source while a track is still using it is undefined. The Tracks property contains the list of tracks currently using the source.

    Inheritance
    Object
    AudioTrackSource
    DeviceAudioTrackSource
    Namespace: Microsoft.MixedReality.WebRTC
    Assembly: Microsoft.MixedReality.WebRTC.dll
    Syntax
    public abstract class AudioTrackSource : IDisposable

    Properties

    | Improve this Doc View Source

    Name

    A name for the audio track source, used for logging and debugging.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Tracks

    List of local audio tracks this source is providing raw audio frames to.

    Declaration
    public IReadOnlyList<LocalAudioTrack> Tracks { get; }
    Property Value
    Type Description
    IReadOnlyList<LocalAudioTrack>

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    See Also

    LocalAudioTrack
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX