Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can I pass the param in the Unity render streaming and receive it in my webapp?

Discussion in 'Unity Render Streaming' started by vth20, Oct 17, 2023.

  1. vth20

    vth20

    Joined:
    Oct 11, 2023
    Posts:
    2
    Hi everyone,
    I have read and done examples of Unity render streaming, however, I have some questions about that.
    I'm understanding that web application includes server and client. this server just runs and starts a nodejs server in IP address like 127.0.0.1 and it will receive the signaling sent by Unity app. The tab [render streaming] in the Project setting in the Unity app, has an input URL, and this field is the URL of the server nodeJS (webapp). and then, the server receives signaling and sends it to the client. Do I understand right? I want to know if can I pass the param in the input field URL in tab [render streaming] (ex: 127.0.0.1?param1=123) and receive it in my webapp, I have some problems and want a solution.


    Thank you
     
    Last edited: Oct 17, 2023
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    796
    You are right.
    I tried to pass the param int the URL, It looks no problem to me.
     

    Attached Files:

  3. vth20

    vth20

    Joined:
    Oct 11, 2023
    Posts:
    2
    Thank you for your answer.
    Passing the param in the URL is not the problem, however, I want to receive that param in my webapp. I have tried debug in the webapp server but I can't see that param anywhere.
    I use the roomID param sent from Unity to divide rooms between streams, and the client will specifically access the roomID in each stream to view them.