docs.unity3d.com
Search Results for

    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.

    Note

    This sample has the same behavior as Broadcast sample, but only the input control method is different. For normal case, we recommend using the Broadcast sample.

    Usage

    Procedure

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

    Launch web server

    1. Open Menu scene in Unity Editor, and click WebBrowserInput button.

    Open WebBrowserInput scene

    1. Click on the Play button in Unity Editor.

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

    Main page on the browser

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

    Video player sample on the browser

    In This Article
    Back to top
    Copyright © 2024 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)