docs.unity.cn
    Show / Hide Table of Contents

    Class WebRTC

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

    Properties

    PeerList

    Declaration
    public static IReadOnlyList<WeakReference<RTCPeerConnection>> PeerList { get; }
    Property Value
    Type Description
    IReadOnlyList<WeakReference<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

    GetSupportedGraphicsFormat(GraphicsDeviceType)

    Declaration
    public static GraphicsFormat GetSupportedGraphicsFormat(GraphicsDeviceType type)
    Parameters
    Type Name Description
    GraphicsDeviceType type
    Returns
    Type Description
    GraphicsFormat

    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 © 2020 Unity Technologies
    Generated by DocFX
    on 01 March 2021