docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateStreamedViewer

    CreateStreamedViewer(int, int, EncoderSettings, bool, WebRTCInfo?)

    create a viewer for streaming

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public StreamedViewerInfo CreateStreamedViewer(int width, int height, EncoderSettings encoderSettings = null, bool useWebRTC = false, WebRTCInfo? webRTCInfo = null)
    Parameters
    Type Name Description
    int width

    Width of the viewer framebuffer

    int height

    Height of the viewer framebuffer

    EncoderSettings encoderSettings

    Settings used for the encoder

    bool useWebRTC

    Switch between raw websockets and webRTC

    WebRTCInfo? webRTCInfo

    Info for web rtc signaling connection

    Returns
    Type Description
    StreamedViewerInfo
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)