Unity-Technologies / UnityRenderStreaming

Streaming server for Unity
Other
1.3k stars 358 forks source link

[BUG]: Render stream is blank for on "localhost" Google Chrome #959

Open debbieyuen opened 10 months ago

debbieyuen commented 10 months ago

Package version

3.1.0-exp.7

Environment

* OS: Mac
* Unity version: 2021.3.29f1, 2022.3.7f1
* Graphics API: Macbook Pro M1 Silicon
* Browser: Google Chrome, Safari

Steps To Reproduce

  1. Run .\webserver_mac
  2. Open localhost port

Current Behavior

Hello! Thank you for your support.

I came across a problem while following Unity's tutorial on setting up Render Streaming. I am working on a Mac and have tested on both Google Chrome and Safari. However, when I go to the localhost link, the stream shows up blank/gray. May I ask how I can proceed and fix this?

Thank you in advance!

Screenshot 2023-11-03 at 7 03 58 PM Screenshot 2023-11-03 at 7 05 58 PM Screenshot 2023-11-03 at 7 06 32 PM Screenshot 2023-11-03 at 7 06 58 PM Screenshot 2023-11-03 at 7 08 25 PM

Expected Behavior

A working stream on my localhost

Anything else?

No response

karasusan commented 10 months ago

@debbieyuen We can see Signaling: WS connection is closed logs repeatedly in the console window. This means websocket connections is not established between peers.

It looks the port number is wrong. You need to fix the port number in the project settings. https://docs.unity3d.com/Packages/com.unity.renderstreaming@3.1/manual/settings.html