Skip to content

Commit 0d49665

Browse files
doc: Fix video/audio component documents (#779)
* wip * fix * fix * fix document * fix doc * fix license file * refactor * add detail * add note * Update com.unity.renderstreaming/Documentation~/audio-streaming.md Co-authored-by: Takashi Kannan <[email protected]> * Update com.unity.renderstreaming/Documentation~/audio-streaming.md Co-authored-by: Takashi Kannan <[email protected]> Co-authored-by: Takashi Kannan <[email protected]>
1 parent d1d0470 commit 0d49665

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+204
-280
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Bug report
22
description: Create a report to help us improve.
33
title: "[BUG]: "
4-
labels:
4+
labels:
55
- bug
6-
assignees:
6+
assignees:
77
- karasusan
88
body:
99
- type: markdown
@@ -13,7 +13,7 @@ body:
1313
* For questions, ask in [Unity Forum](https://forum.unity.com/forums/unity-render-streaming.413).
1414
* Before you file an issue read the [Contributing guide](https://github.com/Unity-Technologies/com.unity.webrtc/blob/develop/CONTRIBUTING.md).
1515
* Check to make sure someone hasn't already opened a similar [issue](https://github.com/Unity-Technologies/com.unity.webrtc/issues).
16-
16+
1717
Please note the following points.
1818
* We try to reply as soon as possible but we will get in touch with you within **5 working days**.
1919
* If you solved the issue yourself, please **post the comment and close your issue**.
@@ -43,7 +43,7 @@ body:
4343
Please describe your environment when the issue occurred.
4444
Example:
4545
- **OS**: Windows10
46-
- **Unity version**: Unity 2021.2
46+
- **Unity version**: Unity 2021.3
4747
- **Graphics API**: DirectX11
4848
- **Browser**: Google Chrome Version 97
4949
value: |
@@ -75,7 +75,7 @@ body:
7575
description: A concise description of what you're experiencing.
7676
validations:
7777
required: false
78-
78+
7979
- type: textarea
8080
id: expected-behavior
8181
attributes:
@@ -94,4 +94,4 @@ body:
9494
placeholder: |
9595
Drag and drop image or text files here.
9696
validations:
97-
required: false
97+
required: false

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Unity Render Streaming copyright © 2020 Unity Technologies ApS
1+
Unity Render Streaming copyright © 2022 Unity Technologies ApS
22

3-
Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License).
3+
Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License).
44

55
Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions.

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Unity Render Streaming
22

3-
<img src="https://img.shields.io/badge/unity-2019.4-green.svg?style=flat-square" alt="unity 2019.4"> <img src="https://img.shields.io/badge/unity-2020.3-green.svg?style=flat-square" alt="unity 2020.3">
3+
<img src="https://img.shields.io/badge/unity-2020.3-green.svg?style=flat-square" alt="unity 2020.3">
4+
<img src="https://img.shields.io/badge/unity-2021.3-green.svg?style=flat-square" alt="unity 2021.3">
5+
<img src="https://img.shields.io/badge/unity-2022.1-green.svg?style=flat-square" alt="unity 2022.1">
46

5-
**Unity Render Streaming** is a solution that provides Unity's high quality rendering abilities via browser. It's designed to meet the needs of tasks like viewing car configurators or architectural models on mobile devices.
6-
This solution's streaming technology takes advantage of [WebRTC](https://webrtc.org/), and developers can even use the [WebRTC package](https://docs.unity3d.com/Packages/com.unity.webrtc@latest) to create their own unique solutions.
7+
**Unity Render Streaming** is a solution that provides Unity's high quality rendering abilities via browser. It's designed to meet the needs of tasks like viewing car configurators or architectural models on mobile devices.
8+
This solution's streaming technology takes advantage of [WebRTC](https://webrtc.org/), and developers can even use the [WebRTC package](https://docs.unity3d.com/Packages/com.unity.webrtc@latest) to create their own unique solutions.
79

810
<img src="com.unity.renderstreaming/Documentation~/images/browser_hdrpscene.png" width=500 align=center>
911

@@ -31,7 +33,7 @@ Please see [Furioos Tutorial](com.unity.renderstreaming/Documentation~/deploy-to
3133
```
3234
<root>
3335
├── BuildScripts~ // Build scripts for CI system
34-
├── com.unity.renderstreaming // Unity Render Streaming Package
36+
├── com.unity.renderstreaming // Unity Render Streaming Package
3537
├── com.unity.template.renderstreaming-hd // HDRP template
3638
├── com.unity.template.renderstreaming-rtx // HDRP Raytracing template
3739
├── RenderStreaming~ // Sample project for package
@@ -44,19 +46,20 @@ Please see [Furioos Tutorial](com.unity.renderstreaming/Documentation~/deploy-to
4446
| ------- | ----- | ----- |
4547
| `1.0.0-preview` | - First release | Aug 2019 |
4648
| `1.1.0-preview` | - Upgrade HDRP version 5.16 | Sep 2019 |
47-
| `1.2.0-preview` | - Unity 2019.3 support | Feb 2020 |
49+
| `1.2.0-preview` | - *Unity 2019.3* support | Feb 2020 |
4850
| `2.0.0-preview` | - Multi camera <br/>- DirectX12 (DXR) Support | Apr 2020 |
49-
| `2.1.0-preview` | - Unity 2019.4 support <br/>- Add bitrate control sample | Aug 2020 |
51+
| `2.1.0-preview` | - *Unity 2019.4* support <br/>- Add bitrate control sample | Aug 2020 |
5052
| `2.2.0-preview` | - Add video receiver <br/>- HDRP/URP on Linux support | Nov 2020 |
5153
| `3.0.0-preview` | - iOS platform support <br/>- AR Foundation sample | Mar 2021 |
5254
| `3.1.0-exp.1` | - Android platform support | Jun 2021 |
5355
| `3.1.0-exp.2` | - Audio Renderer support <br/> - Multiplay sample <br/> - M1 Mac support | Dec 2021 |
5456
| `3.1.0-exp.3` | - Fix bugs | Feb 2022 |
55-
| `3.1.0-exp.4` | | |
57+
| `3.1.0-exp.4` | - Streaming settings API <br/> - *Unity 2022.1* support <br/> - Remove *Unity 2019.4* from support list | Sep 2022 |
58+
| `3.1.0-exp.5` | | Nov 2022 |
5659

5760
## FAQ
5861

59-
Read [this page](com.unity.renderstreaming/Documentation~/faq.md) and [Unity Forum](https://forum.unity.com/forums/unity-render-streaming.413/)
62+
Please read [this page](com.unity.renderstreaming/Documentation~/faq.md) and [Unity Forum](https://forum.unity.com/forums/unity-render-streaming.413/).
6063

6164
## Contributors
6265

com.unity.renderstreaming/Documentation~/TableOfContents.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* [About Signaling Type](signaling-type.md)
1212
* [Customize Web Application](customize-webapp.md)
1313
* [Components Settings](components.md)
14-
* [Streaming Management](streaming-management.md)
15-
* [Video Streaming](video-streaming.md)
16-
* [Audio Streaming](audio-streaming.md)
17-
* [Data Streaming](data-streaming.md)
14+
* [Streaming Management Component](streaming-management.md)
15+
* [Video Streaming Component](video-streaming.md)
16+
* [Audio Streaming Component](audio-streaming.md)
17+
* [Data Streaming Component](data-streaming.md)
1818
* [Using with Input System](use-inputsystem.md)
1919
* [Deploy to Furioos](deploy-to-furioos.md)
2020
* [Samples](samples.md)
@@ -27,4 +27,4 @@
2727
* [Web Browser Input](sample-browserinput.md)
2828
* [Multiplay](sample-multiplay.md)
2929
* [Project Template](template.md)
30-
* [FAQ](faq.md)
30+
* [FAQ](faq.md)
Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# Audio Streaming
1+
# Audio Streaming Component
22

3-
[`AudioStreamSender`](../api/Unity.RenderStreaming.AudioStreamSender.html) class and [`AudioStreamReceiver`]((../api/Unity.RenderStreaming.AudioStreamReceiver.html)) class are the base classes for sending and receiving audio. And various components are implemented using inheritance relationships with these class. Components are provided for the sender and receiver.
3+
[`AudioStreamSender`](../api/Unity.RenderStreaming.AudioStreamSender.html) class and [`AudioStreamReceiver`]((../api/Unity.RenderStreaming.AudioStreamReceiver.html)) class are the base classes for sending and receiving audio. Components are provided for the sender and receiver.
44

5-
> [!NOTE]
6-
> There is currently a limitation in the audio codec selection. Currently, only **Opus** is used for the audio codec.
7-
8-
## [`AudioStreamSender`](../api/Unity.RenderStreaming.AudioStreamSender.html) component
5+
## [`AudioStreamSender`](../api/Unity.RenderStreaming.AudioStreamSender.html) component reference
96

107
This component streams the audio rendering results from [`AudioListener`](https://docs.unity3d.com/ScriptReference/AudioListener.html) component or [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html) component.
118

@@ -15,26 +12,25 @@ This component streams the audio rendering results from [`AudioListener`](https:
1512

1613
| Parameter | Description | Default |
1714
| --------- | ----------- | ------- |
18-
| **Audio Source** | [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html) instance for sending audio | None |
19-
20-
## [`MicrophoneStreamSender`](../api/Unity.RenderStreaming.MicrophoneStreamSender.html) component
15+
| **Audio Source Type** | Choose the type of source for your audio streaming. <br/> - *Audio Listener* <br/> - *Audio Source* <br/> - *Microphone* | *Audio Listener* |
16+
| *Audio Listener* | [`Audio Listener`](https://docs.unity3d.com/ScriptReference/AudioSource.html) instance for sending audio | |
17+
| *Audio Source* | [`Audio Source`](https://docs.unity3d.com/ScriptReference/AudioSource.html) instance for sending audio | |
18+
| *Microphone Device Index* | The index of the video input device to be used. See [Microphone.devices](https://docs.unity3d.com/ScriptReference/Microphone-devices.html). | 0 |
19+
| *Auto Request User Authorization* | Whether request permission to use microphone. You don't need to enable it if you call [Application.RequestUserAuthorization](https://docs.unity3d.com/ScriptReference/Application.RequestUserAuthorization.html) yourself. | Enabled |
20+
| **Audio Codec** | *Default* option means trying to use all available codecs for negotiating other peers. | Default |
21+
| **Bitrate (kbits/sec)** | The bitrate of the audio streaming. | |
22+
| *Min* | The minimum value of the bitrate. | 0 |
23+
| *Max* | The maximum value of the bitrate. | 1000 |
24+
25+
## [`AudioStreamReceiver`](../api/Unity.RenderStreaming.AudioStreamReceiver.html) component reference
2126

22-
This component streams the audio rendering results from [`Microphone`](https://docs.unity3d.com/ScriptReference/Microphone.html).
27+
The components receive audio track stream and rendering to [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html).
2328

24-
![MicrophoneSender inspector](images/microphonesender_inspector.png)
29+
![AudioStreamReceiver inspector](images/audiostreamreceiver_inspector.png)
2530

2631
### Properties
2732

2833
| Parameter | Description | Default |
2934
| --------- | ----------- | ------- |
30-
| **Audio Source** | [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html) instance for sending audio | None |
31-
| **Device Index** | An index of the list of available microphone devices | 0 |
32-
33-
An index of the list of available microphone devices
34-
35-
36-
## [`AudioStreamReceiver`](../api/Unity.RenderStreaming.AudioStreamReceiver.html) component
37-
38-
The components receive audio track stream and rendering to [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html).
39-
40-
![AudioStreamReceiver inspector](images/audiostreamreceiver_inspector.png)
35+
| **Target Audio Source** | [`AudioSource`](https://docs.unity3d.com/ScriptReference/AudioSource.html) instance for sending audio | None |
36+
| **Audio Codec** | *Default* option means trying to use all available codecs for negotiating other peers. | Default |

com.unity.renderstreaming/Documentation~/components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This package provides some useful components to make the streaming feature to the application made with Unity.
44

5-
- [Streaming Management](streaming-management.md)
6-
- [Video Streaming](video-streaming.md)
7-
- [Audio Streaming](audio-streaming.md)
8-
- [Data Streaming](data-streaming.md)
5+
- [Streaming Management Component](streaming-management.md)
6+
- [Video Streaming Component](video-streaming.md)
7+
- [Audio Streaming Component](audio-streaming.md)
8+
- [Data Streaming Component](data-streaming.md)

com.unity.renderstreaming/Documentation~/create-scene.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This tutorial explains how to edit an empty scene in Unity Editor and display th
44

55
## Setting component
66

7-
If Unity version is 2020 or later, Create a new empty scene. Select **File > New Scene** from the menu to open the dialog and select **Basic (Built-in)**.
7+
If Unity version is 2020 or later, Create a new empty scene. Select **File > New Scene** from the menu to open the dialog and select **Basic (Built-in)**.
88

99
> [!NOTE]
1010
> This dialog is not opened if you are using Unity 2019.
@@ -30,13 +30,13 @@ Assign the **Broadcast** component to the `Handler` property of the **Render Str
3030

3131
![Assign Broadcast component to handler](images/assign_broadcast_to_handler.png)
3232

33-
Add a **Camera Stream Sender** component to the **Main Camera** object. This component refers to the Camera and delivers it as a stream to other peers.
33+
Add a [**Video Stream Sender**](video-streaming.html#videostreamsenderapiunityrenderstreamingvideostreamsenderhtml-component) component to the **Main Camera** object. This component refers to the Camera and delivers it as a stream to other peers.
3434

35-
![Add CameraStreamSender component](images/add_camerastreamsender_component.png)
35+
![Add VideoStreamSender component](images/add_videostreamsender_component.png)
3636

37-
Assign the **Camera Stream Sender** component to the **Broadcast** component property.
37+
Assign the [**Video Stream Sender**](video-streaming.html#videostreamsenderapiunityrenderstreamingvideostreamsenderhtml-component) component to the **Broadcast** component property.
3838

39-
![Assign CameraStreamSender component to streams](images/assign_camerastreamsender_to_streams.png)
39+
![Assign VideoStreamSender component to streams](images/assign_videostreamsender_to_streams.png)
4040

4141
### Check on browser
4242

@@ -46,6 +46,6 @@ Open the **Receiver Sample** page, and you should see the video from the Unity c
4646

4747
## Next Step
4848

49-
You can distribute video from Unity to the browser. It is also possible to stream audio. There are several types of components that can be streamed. Check the [component page](components.md) for details.
49+
You can distribute video from Unity to the browser. It's also possible to stream audio. There are several types of components that can be streamed. Check the [component page](components.md) for details.
5050

51-
Next, let's try to control the camera from the browser. Please go to [the next page](control-camera.md).
51+
Next, please try to control the camera from the browser. Please go to [the next page](control-camera.md).

com.unity.renderstreaming/Documentation~/data-streaming.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Data Streaming
1+
# Data Streaming Component
22

33
Data streaming is using [`RTCDataChannel`](https://docs.unity3d.com/Packages/[email protected]/manual/datachannel.html) of the WebRTC package internally.
44

55
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).
66

7-
## [`InputSender`](../api/Unity.RenderStreaming.InputSender.html) component
7+
## [`InputSender`](../api/Unity.RenderStreaming.InputSender.html) component reference
88

99
This component sends input events fired from all input devices connected machine.
1010

@@ -17,7 +17,7 @@ This component sends input events fired from all input devices connected machine
1717
| **Local** | Channel is local or remote | `False` |
1818
| **Label** | Channel label | Empty |
1919

20-
## [`InputReceiver`](../api/Unity.RenderStreaming.InputReceiver.html) component
20+
## [`InputReceiver`](../api/Unity.RenderStreaming.InputReceiver.html) component reference
2121

2222
This component receives input events from Unity.
2323

@@ -31,4 +31,8 @@ This component receives input events from Unity.
3131
| **Label** | Channel label. | Empty |
3232
| **Actions** | The set of [**Input Actions**](https://docs.unity3d.com/Packages/[email protected]/manual/Actions.html) associated with the player. To receive input, each player must have an associated set of Actions. See documentation on Actions for details. | `None` |
3333
| *Default Map* | Which Action Map in `Actions` to enable by default. If set to `None`, then the player starts with no Actions being enabled. | `None` |
34-
| **Events** | Uses a separate UnityEvent for each individual type of message. | Empty |
34+
| **Events** | Uses a separate UnityEvent for each individual type of message. | Empty |
35+
36+
37+
38+
Binary file not shown.
17.3 KB
Loading

0 commit comments

Comments
 (0)