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.
Recommend enabling Hardware Encoder support
on the Render Streaming
inspector to improve performance using hardware acceleration.
- Launch the signaling server using public mode. Please refer to this link for launching.
- Open
WebBrowserInput
scene.
- Specify IP address of the signaling server to the
Signaling URL
parameter on the inspector.
-
Click on the Play button in Unity Editor.
-
Open your web browser and access
http://localhost
. You can see the top page. Click aVideoPlayer Sample
link.
- You can see the Unity scene on the browser, and control a camera in the Unity scene.