Skip to content

Commit 40b6135

Browse files
authored
fix docs (#441)
1 parent ec92d70 commit 40b6135

File tree

5 files changed

+17
-68
lines changed

5 files changed

+17
-68
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you use the hardware encoder, Make sure you're using a graphics card that sup
2222

2323
Make sure the port isn't being used by another service.
2424

25-
### uGUI can't be operated through a browser.
25+
### Unity UI can't be operated through a browser.
2626

2727
It is only possible to operate when the focus is on the running application.
2828
On [This page](browser_input.md#using-unity-ui), you can see more info.
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# Import Samples
2-
You can import Samples from the bottom of the `com.unity.renderstreaming` package in the PackageManager Window.
3-
4-
![Sample List](images/renderstreaming_samples.png)
5-
1+
# Samples
62

7-
# About Samples
3+
## About Samples
84

95
* [Receiver](sample-receiver.md)
106
* [Broadcast](sample-broadcast.md)
117
* [Bidirectional](sample-bidirectional.md)
128
* [RenderPipeline](sample-renderpipeline.md)
139
* [AR Foundation](sample-arfoundation.md)
1410
* [Gyroscope](sample-gyroscope.md)
15-
* [Web Browser Input](sample-browserinput.md)
11+
* [Web Browser Input](sample-browserinput.md)
12+
13+
## Import Samples
14+
You can import Samples from the bottom of the `com.unity.renderstreaming` package in the PackageManager Window.
15+
16+
![Sample List](images/renderstreaming_samples.png)

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

+5-57
Original file line numberDiff line numberDiff line change
@@ -2,74 +2,22 @@
22

33
**The Unity Render Streaming** package provides two different signaling protocols as examples.
44

5-
- HttpSignaling
6-
- WebSocketSignaling
5+
- `HttpSignaling`
6+
- `WebSocketSignaling`
77

88
In the example, the schema given to `URL Signaling` is used to determine which protocol to use.
99

1010
![Render Streaming backend](images/websocket_signaling_inspector.png)
1111

12-
If it starts with `http`, HttpSignaling is used. If it starts with `ws`, WebSocketSignaling is used.
12+
If it starts with `http`, `HttpSignaling` is used. If it starts with `ws`, `WebSocketSignaling` is used.
1313

1414
## HttpSignaling
15-
Signaling is handled by Http Request.
15+
Signaling is handled by HTTP Request.
1616
The signalling server is polled at specified intervals to obtain the Offer and Candidate of the difference from the last time.
1717

1818
## WebSocketSignaling
1919
Signaling is handled by WebSocket.
2020
When the signaling server receives the Offer or Candidate, the server distributes it to the connected clients.
2121
> [!WARNING]
2222
> WebSocket does not work in iOS Safari on servers that use self-signed certificates.
23-
> If you want to verify the behavior of WebSocket signaling in iOS Safari, use a certificate issued by a trusted certification authority. Or try signaling with Http.
24-
25-
## Proprietary Signaling Class
26-
Both of the signaling classes implement `ISignaling`.
27-
If you want to create your own signaling class, you can inherit `ISignaling` to use it directly from the UnityRenderStreaming class.
28-
The following is a description of each method.
29-
30-
```
31-
void Start();
32-
```
33-
- A method to call when starting signaling.
34-
- In the sample, we are establishing a session with the server for each protocol.
35-
36-
```
37-
void Stop();
38-
```
39-
A method to call when you want to stop signaling.
40-
In the sample, we are terminating the session with the server for each protocol.
41-
42-
```
43-
public delegate void OnOfferHandler(ISignaling signaling, DescData e);
44-
event OnOfferHandler OnOffer;
45-
```
46-
- This is a delegate that registers the process to be performed when a new Offer is received by signaling.
47-
48-
```
49-
public delegate void OnAnswerHandler(ISignaling signaling, DescData e);
50-
event OnAnswerHandler OnAnswer;
51-
```
52-
- This is a delegate that registers the process to be performed when a new Answer is received by signaling.
53-
- In the current version, it is not used in Unity because it does not receive Answers.
54-
55-
```
56-
public delegate void OnIceCandidateHandler(ISignaling signaling, CandidateData e);
57-
event OnIceCandidateHandler OnIceCandidate;
58-
```
59-
- This is a delegate that registers the process to be performed when it receives a new Candidate by signaling.
60-
61-
```
62-
void SendOffer();
63-
```
64-
- A method to call when sending an Offer in signaling.
65-
- In the current version, it is not implemented in the sample because it is not possible to send Offer from Unity.
66-
67-
```
68-
void SendAnswer(string connectionId, RTCSessionDescription answer);
69-
```
70-
- A method to call when sending an Answer in signaling.
71-
72-
```
73-
void SendCandidate(string connectionId, RTCIceCandidate candidate);
74-
```
75-
- A method to call when sending a Candidate in signaling.
23+
> If you want to verify the behavior of WebSocket signaling in iOS Safari, use a certificate issued by a trusted certification authority. Or try signaling with HTTP.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Use the [webrtc sample](https://webrtc.github.io/samples/src/content/peerconnect
9494
| TURN username | username |
9595
| TURN password | password |
9696

97-
<img src="images/turn-connection-testing.png" width=600 align=center>
97+
![TURN connection testing](images/turn-connection-testing.png)
9898

9999
Click `Gather candidates` to show a list of potential communication paths. Verify that a log is also printed on the TURN server side.
100100

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ You can see the Unity scene on the browser, and control a camera in the Unity sc
9292

9393
## After tutorial
9494

95-
About general questions, please see [FAQ](faq.md) page. About the operation of inspectors, please see [Components settings](components.md) page.
95+
About general questions, please see [FAQ](faq.md) page. And you are available for discussions about Unity Render Streaming on [Unity Forum](https://forum.unity.com/forums/unity-render-streaming.413).
9696

97+
About the operation of inspectors, please see [Components settings](components.md) page.
9798
About options of web application, please see [The web application](webapp.md) page.
98-
9999
You can see more details for samples on the [Samples](samples.md) page.

0 commit comments

Comments
 (0)