Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.25 KB

File metadata and controls

35 lines (18 loc) · 1.25 KB

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

  1. Open WebBrowserInput scene.

Open WebBrowserInput scene

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

Signaling url on inspector

  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