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

    Class WebRTC

    Inheritance
    Object
    WebRTC
    Namespace: Unity.WebRTC
    Syntax
    public static class WebRTC

    Properties

    CodecInitializationResult

    Not implement this property. Please check each track about initialization. (VideoStreamTrack.IsInitialized) This property will be removed next major version up.

    Declaration
    [Obsolete("Use 'VideoStreamTrack.IsInitialized' instead.", true)]
    public static CodecInitializationResult CodecInitializationResult { get; }
    Property Value
    Type Description
    CodecInitializationResult
    Exceptions
    Type Condition
    NotImplementedException

    PeerList

    Declaration
    public static IReadOnlyList<RTCPeerConnection> PeerList { get; }
    Property Value
    Type Description
    IReadOnlyList<RTCPeerConnection>

    SupportHardwareEncoder

    Declaration
    public static bool SupportHardwareEncoder { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Dispose()

    Declaration
    public static void Dispose()

    GetEncoderType()

    Declaration
    public static EncoderType GetEncoderType()
    Returns
    Type Description
    EncoderType

    GetSupportedRenderTextureFormat(GraphicsDeviceType)

    Declaration
    public static RenderTextureFormat GetSupportedRenderTextureFormat(GraphicsDeviceType type)
    Parameters
    Type Name Description
    GraphicsDeviceType type
    Returns
    Type Description
    RenderTextureFormat

    Initialize(EncoderType)

    Declaration
    public static void Initialize(EncoderType type = EncoderType.Hardware)
    Parameters
    Type Name Description
    EncoderType type

    Sync(IntPtr, Action)

    Declaration
    public static void Sync(IntPtr ptr, Action callback)
    Parameters
    Type Name Description
    IntPtr ptr
    Action callback

    Update()

    Declaration
    public static IEnumerator Update()
    Returns
    Type Description
    IEnumerator
    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