-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [3.1.0-exp.6] - 2023-2-24 ### Added - Support Automatic Streaming. - Support Render Streaming Wizard. - Support Command line arguments. - Add Render Streaming Settings in the Project Settings window. ### Changed - Rename classes. - `RenderStreaming` > `SignalingManager` - Websocket is in default for signaling protocol instead of HTTP polling. - Changed a unit of the HTTP polling interval, second to millisecond.
- Loading branch information
Unity Technologies
committed
Feb 24, 2023
1 parent
02f6e02
commit 6cc34c8
Showing
165 changed files
with
15,069 additions
and
6,395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Command line arguments | ||
|
||
Unity Render Streaming supports configuration changes via command line arguments. you can change settings to match the deployment environments. Command line arguments work with Windows, macOS, and Linux runtime applications. Mobile platforms aren't supported. | ||
|
||
> [!WARNING] | ||
> **-batchmode** and **-nographics** options don't work with Unity Render Streaming. | ||
Command line arguments are evaluated when initializing the [**SignalingManager**](streaming-management.md) component. When command line arguments are evaluated in the **SignalingManager** component, it overrides the settings specified in the [Settings Window](settings.md). If you wish to ignore the command line options, specify **Evaluate command line arguments** off in the SignalingManager inspector. If a command line arguments contain invalid values, the contents of the configuration window are evaluated, instead of the arguments of the command line. | ||
|
||
Use a command line with the following arguments to start your standalone app. | ||
|
||
| Argument | Description | | ||
| --- | --- | | ||
| `signalingType <value>` | Specify the signaling type. **websocket** or **http**. | | ||
| `signalingUrl <value>` | Specify the URL of signaling server. | | ||
| `iceServerUrl <value>` | Set the URL of STUN/TURN server. | | ||
| `iceServerUsername <value>` | Specify the user name of the TURN server. | | ||
| `iceServerCredential <value>` | Specify the password of the TURN server. | | ||
| `iceServerCredentialType <value>` | Specify the credential type for the TURN server. **password** or **oauth**. | | ||
| `pollingInterval <value>` | Specify the polling interval in milliseconds to the signaling server. This value is used when using **http** for the signaling type. | | ||
| `importJson <path>` | Specify the path of the JSON file. | | ||
|
||
## Import JSON | ||
|
||
You can change the configuration via the JSON file when using **-importJson** option in command line. The JSON file must be written in the following format: | ||
|
||
```javascript | ||
{ | ||
"signalingType": "websocket", | ||
"signalingUrl": "ws://192.168.11.11", | ||
"iceServers": [{ | ||
"urls": [ | ||
"stun:stun.l.google.com:19302" | ||
], | ||
"username": "user", | ||
"credential": "pass", | ||
"credentialType": "password" | ||
}], | ||
"pollingInterval": "5000" | ||
} | ||
``` | ||
|
||
## Command line examples | ||
|
||
Change the signaling type to **http**: | ||
|
||
``` | ||
RenderStreaming.exe -signalingType http | ||
``` | ||
|
||
Change the URL of the signaling server: | ||
|
||
``` | ||
RenderStreaming.exe -signalingUrl http://192.168.10.1 | ||
``` | ||
|
||
Specify multiple URLs of STAN servers: | ||
|
||
``` | ||
RenderStreaming.exe -iceServerUrl stun:stun.l.google.com:19302 -iceServerUrl stun:stun.l.google.com:19303 | ||
``` | ||
|
||
Specify the URL, username, and password of the TURN server: | ||
|
||
``` | ||
RenderStreaming.exe -iceServerUrl turn:192.168.10.10:3478?transport=udp -iceServerUsername username -iceServerCredentialType password -iceServerCredential pass | ||
``` | ||
|
||
Specify the path of the JSON file: | ||
|
||
``` | ||
RenderStreaming.exe -importJson config.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Data streaming is using [`RTCDataChannel`](https://docs.unity3d.com/Packages/[email protected]/manual/datachannel.html) of the WebRTC package internally. | ||
|
||
Using the data streaming feature, we provide a component to send messages of [Input System](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest). For more details, please check the section on [Using with Input System](use-inputsystem.md). | ||
Using the data streaming feature, Unity Render Streaming provides a component to send messages of [Input System](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest). | ||
|
||
## [`InputSender`](../api/Unity.RenderStreaming.InputSender.html) component reference | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,18 +38,19 @@ Open **Menu** scene and press `Play` button, as you can see the menu for sample | |
You can change signaling settings below during runtime. | ||
|
||
| Parameter | Description | | ||
| ----------- | --------------------------- | | ||
| [**Signaling Type**](signaling-type.md) | *Http*, *WebSocket* or *Furioos* | | ||
| **Enable/Disable SSL** | Use *https* if set enable. | | ||
| --- | --- | | ||
| **Use Default Settings** | Refer to settings of [Project Settings](settings.md). | | ||
| [**Signaling Type**](signaling-type.md) | *Http*, *WebSocket* or *Furioos*. | | ||
| **Enable/Disable SSL** | Use **https** if set enable. | | ||
| **Host Address** | Set IP address or URL of your signaling server. | | ||
| **Interval** | Polling interval for communication of signaling. <br/> This parameter effects Http signaling. | | ||
| **Interval (msec)** | Polling interval for communication of signaling. <br/> This parameter effects Http signaling. | | ||
|
||
![Sample menu](images/sample_menu_setting_panel.png) | ||
|
||
Moreover, you can choice the options about the video streaming settings. | ||
|
||
| Parameter | Description | | ||
|-----------|---------------------------| | ||
| --- | ---| | ||
| **Video Codec (Receiver)** | Choice preferred video codec for receiver. <br/> Often the performance of [Hardware codec](https://docs.unity3d.com/Packages/[email protected]/manual/videostreaming.html#hardware-acceleration-codecs) is greater than software codec. | | ||
| **Video Codec (Sender)** | Choice preferred video codec for sender. | | ||
| **Stream Size** | Set the resolution of video streaming for sender. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Render Streaming Settings | ||
|
||
Unity Render Streaming saves configuration assets to the project. The configuration asset are created in the Render Streaming panel of the Project Settings Window. If your project contains more than one configuration asset, select the asset in the Render Streaming Settings section. | ||
|
||
![Render Streaming Project Settings](images/renderstreaming_settings.png) | ||
|
||
## General Settings | ||
|
||
| Parameter | Description | Default | | ||
| ---- | ---- | ---- | | ||
| **Automatic Streaming** | Automatically performs the necessary setup for streaming and starts streaming. | Enabled | | ||
|
||
### Behaviour of the Automatic Streaming flag | ||
|
||
If the **Automatic Streaming** flag is turned on, the application will automatically set up for streaming when it's started. This initialization process takes place before calling the **MonoBehaviour.Start** method on the scene. When streaming starts, the screen on the game view and the audio played by the **AudioListener** are delivered. It also receives mouse and keyboard input from the client and is configured to work with the Input System. | ||
|
||
Streaming continues even when moving between scenes. If you want to stop streaming, turn the **Automatic Streaming** flag off. | ||
|
||
## Signaling Settings | ||
|
||
| Parameter | Description | Default | | ||
| ---- | ---- | ---- | | ||
| **Signaling Type** | Choose the signaling type (See [About Signaling Type](signaling-type.md)). | websocket | | ||
| **Signaling Server URL** | Set the signaling server URL. <br>If you use WebSocket as a signaling protocol, you should specify a URL starting with **ws** or **wss**. | ws://127.0.0.1 | | ||
| **ICE Server** | Set a list of STUN/TURN servers. (See [TURN Server](turnserver.md)) | | | ||
| **URLs** | Set URLs of STUN/TURN servers. | [stun:stun.l.google.com:19302\] | | ||
| **Username** | The username to use when logging into the TURN server. | | | ||
| **Credencial** | The credential to use when logging into the TURN server. | | | ||
| **Credencial Type** | This attribute specifies what kind of **credential** is to be used when connecting to the TURN server. | Password | | ||
| **Polling Interval** | Set the polling frequency (in milliseconds) to the signaling server <br>Valid only if you are using Http as the signaling protocol. | 5000 (msec) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.