docs.unity.cn
    Show / Hide Table of Contents

    Web Browser Input Sample

    This sample demonstrates to stream the video from Unity to the web browser, and operate input events on the browser as Unity events.

    you can see the list of supported browsers on The Web Application page.

    Usage

    Hardware acceleration

    Recommend enabling Hardware Encoder support on the Render Streaming inspector to improve performance using hardware acceleration.

    Procedure

    1) Launch the signaling server using public mode. Please refer to this link for launching.

    Launch web server

    2) Open WebBrowserInput scene.

    Open WebBrowserInput scene

    3) Specify IP address of the signaling server to the Signaling URL parameter on the inspector.

    Signaling url on inspector

    4) Click on the Play button in Unity Editor.

    5) Open your web browser and access http://localhost. You can see the top page. Click a VideoPlayer Sample link.

    Main page on the browser

    6) You can see the Unity scene on the browser, and control a camera in the Unity scene.

    Video player sample on the browser

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 05 March 2021