docs.unity3d.com
    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 © 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