Class CameraExtension | WebRTC | 2.0.5-preview
docs.unity3d.com
    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
    In This Article
    • Methods
      • CaptureStream(Camera, Int32, Int32, Int32, RenderTextureDepth)
      • CaptureStreamTrack(Camera, Int32, Int32, Int32, RenderTextureDepth)
    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