Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Is there a way for me to use RenderStreaming to interact with browser operations without binding too

Discussion in 'Unity Render Streaming' started by strygwyr980, Apr 3, 2023.

  1. strygwyr980

    strygwyr980

    Joined:
    Apr 3, 2023
    Posts:
    2
    In general, configuring Render Streaming requires configuring Video/Camera Stream Sender, Input Receiver, and other configurations, and then binding browser input operations to Input Receiver. However, if I have a large number of cameras and have various key operations, what methods or scripts can simplify this operation step.
     
  2. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
    By using ScreenSender and switching the active camera by input from the browser, I think that configuration for each camera is unnecessary.
    If you want to handle input in common, please refer to AutoInputReceiver instead of InputReceiver.

    https://github.com/Unity-Technologi...ing/Runtime/Scripts/AutomaticStreaming.cs#L97
     
    imfzzl likes this.
  3. strygwyr980

    strygwyr980

    Joined:
    Apr 3, 2023
    Posts:
    2
    Firstly, thank you for your answer. I have downloaded this version of RenderStreaming. But after I installed it into the project, it reminded me that 'Receiver is inaccessible due to its protection level'. Then I fixed it and found that there seems to be no initialized function in the InputRemoving class with the Recipient parameter for the InputRemoving object. It seems that it still cannot be used.
     
  4. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
    How about copying this class to your own project and defining it as a new class and using it?