【m】插件上传
This commit is contained in:
30
Packages/com.unity.renderstreaming@3.1.0-exp.9/Documentation~/sample-browserinput.md
vendored
Normal file
30
Packages/com.unity.renderstreaming@3.1.0-exp.9/Documentation~/sample-browserinput.md
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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](webapp.md) page.
|
||||
|
||||
> [!NOTE]
|
||||
> This sample has the same behavior as [Broadcast](broadcast.md) 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](webapp.md) for launching.
|
||||
|
||||

|
||||
|
||||
2) Open **Menu** scene in Unity Editor, and click `WebBrowserInput` button.
|
||||
|
||||

|
||||
|
||||
3) Click on the Play button in Unity Editor.
|
||||
|
||||
4) Open your web browser and access `http://localhost`. You can see the top page. Click a `VideoPlayer Sample` link.
|
||||
|
||||

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

|
||||
Reference in New Issue
Block a user