Class CameraExtension | WebRTC | 2.0.5-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class CameraExtension

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

    Methods

    CaptureStream(Camera, Int32, Int32, Int32, RenderTextureDepth)

    Declaration
    public static MediaStream CaptureStream(this Camera cam, int width, int height, int bitrate, RenderTextureDepth depth = RenderTextureDepth.DEPTH_24)
    Parameters
    Type Name Description
    Camera cam
    Int32 width
    Int32 height
    Int32 bitrate
    RenderTextureDepth depth
    Returns
    Type Description
    MediaStream

    CaptureStreamTrack(Camera, Int32, Int32, Int32, RenderTextureDepth)

    Declaration
    public static VideoStreamTrack CaptureStreamTrack(this Camera cam, int width, int height, int bitrate, RenderTextureDepth depth = RenderTextureDepth.DEPTH_24)
    Parameters
    Type Name Description
    Camera cam
    Int32 width
    Int32 height
    Int32 bitrate
    RenderTextureDepth depth
    Returns
    Type Description
    VideoStreamTrack
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX