Hi,
I tried to implement mesh topology with Unity Render Streaming package (3.1.0-exp.3).
I want to create new SingleConnection whenever there is a new peer comes.
Is it possible to add handlers (e.g., SingleConnection) after executing RenderStreaming.Run()?
Thanks for any help!
Currently, adding a Handler after calling RenderStreaming.Run () is not supported.
Please refer to the following issue as it does the same thing.
opened 01:30AM - 09 Jun 22 UTC
closed 02:45AM - 11 Oct 22 UTC
bug
waiting for release
### Package version
2.4.0-exp.6
### Environment
```markdown
* OS:Ubuntu 20.04…
* Unity version:2020.3.18f1
* Renderstreaming package v3.1.0-exp.3
* WebRTC package v2.4.0-exp.6
```
### Steps To Reproduce
1. Comment out line [124](https://github.com/Unity-Technologies/UnityRenderStreaming/blob/develop/com.unity.renderstreaming/Runtime/Scripts/RenderStreaming.cs#L124) to [135](https://github.com/Unity-Technologies/UnityRenderStreaming/blob/develop/com.unity.renderstreaming/Runtime/Scripts/RenderStreaming.cs#L135) in [Renderstreamer.cs](https://github.com/Unity-Technologies/UnityRenderStreaming/blob/develop/com.unity.renderstreaming/Runtime/Scripts/RenderStreaming.cs)
2. Start RenderStreaming with empty Handlers list
3. Add a GameObject with SingleConnection ,CameraStreamSender & Camera components attached and add this to RenderStreamer handler list at runtime.
4. Execute [CreateConnection(1)](https://github.com/Unity-Technologies/UnityRenderStreaming/blob/develop/com.unity.renderstreaming/Runtime/Scripts/SingleConnection.cs#L25) in SingleConnection.cs component for this gameobject
5. Open Browser and exchange offer and answer using signalling server
6. You should see rendered video on your browser now
7. Repeat the process with another Gameobject with same components but different connection ID.
8. Open another tab in your browser and exchange offer and answer like before
9. This time you will not receive any video stream in your browser.
### Current Behavior
Renderstreamer is not working for the second peer.
### Expected Behavior
See video stream for both users
### Anything else?
_No response_
Thank you for your reply!
I changed to implement the mesh topology with the WebRTC package ( which works fine).
1 Like