Class MediaStream | WebRTC | 1.1.2-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class MediaStream

    Inheritance
    Object
    MediaStream
    Namespace: Unity.WebRTC
    Syntax
    public class MediaStream : IDisposable

    Properties

    Id

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    String

    Methods

    AddTrack(MediaStreamTrack)

    Declaration
    public void AddTrack(MediaStreamTrack track)
    Parameters
    Type Name Description
    MediaStreamTrack track

    Dispose()

    Declaration
    public void Dispose()

    Finalize()

    Declaration
    protected void Finalize()

    FinalizeEncoder()

    Declaration
    public void FinalizeEncoder()

    GetAudioTracks()

    Declaration
    public MediaStreamTrack[] GetAudioTracks()
    Returns
    Type Description
    MediaStreamTrack[]

    GetTracks()

    Declaration
    public MediaStreamTrack[] GetTracks()
    Returns
    Type Description
    MediaStreamTrack[]

    GetVideoTracks()

    Declaration
    public MediaStreamTrack[] GetVideoTracks()
    Returns
    Type Description
    MediaStreamTrack[]

    RemoveTrack(MediaStreamTrack)

    Declaration
    public void RemoveTrack(MediaStreamTrack track)
    Parameters
    Type Name Description
    MediaStreamTrack track
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023