docs.unity3d.com
    目次を表示する/隠す

    Class CameraExtension

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

    Methods

    CaptureStream(Camera, Int32, Int32, RenderTextureDepth)

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

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

    Create an instance of VideoStreamTrack to stream a camera.

    Declaration
    public static VideoStreamTrack CaptureStreamTrack(this Camera cam, int width, int height, RenderTextureDepth depth = RenderTextureDepth.Depth24, CopyTexture textureCopy = null)
    Parameters
    Type Name Description
    Camera cam
    Int32 width
    Int32 height
    RenderTextureDepth depth
    CopyTexture textureCopy
    Returns
    Type Description
    VideoStreamTrack
    Remarks

    You should keep a reference of VideoStreamTrack, created by this method. This instance is collected by GC automatically if you don't own a reference.

    トップに戻る
    Copyright © 2023 Unity Technologies
    • 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 Wednesday, November 1, 2023