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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Turn issues on android (VR Headset)

Discussion in 'Unity Render Streaming' started by HabilityPierre, Jul 3, 2023.

  1. HabilityPierre

    HabilityPierre

    Joined:
    Nov 18, 2021
    Posts:
    6
    Hi.

    I am using the latest version of the plugin and everything works smoothly on the stun. When I want to use my turn, it works on the computer but not on my headset. One way to fix it would be to force the iceTransportPolicy of the iceCandidates to "relay" but It is protected inside the package. I am about to modify it myself but maybe there is a proper way to do it without tearing apart the plugin.

    Thanks in advance.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    What is the issue exactly?
    And which plugins and unity version are used?
     
  3. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    762
    Can you use this API in SignalingManager?

    https://docs.unity3d.com/Packages/c...Unity_RenderStreaming_SignalingHandlerBase___

    But that sounds strange. I would like to know why you need to change iceTransportPolicy to "relay".
     
  4. HabilityPierre

    HabilityPierre

    Joined:
    Nov 18, 2021
    Posts:
    6
    Thanks for your answer. I managed to change the transport policy to relay but it didn't change my issue.

    The thing is that through the Ice candidates, I do receive the adress of the web server using the TURN but i do not reply with the same adress. I reply with my local adress, 192.168.x.x... I ran the WebRTC sample PeerConnection and here, using the TURN, i do manage to reply with the adress i am sent.

    I am trying to understand why can't I share my screen using the TURN but i can using the STUN.

    I am on Unity 2021.3.16f1, using the 3.1.0-exp 6 of the Unity Render Streaming Package
     
  5. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    762
    I think TURN server doesn't work well. Can you check logs on the TURN server?
     
  6. HabilityPierre

    HabilityPierre

    Joined:
    Nov 18, 2021
    Posts:
    6
    Well it looks like everything works, I can communicate with my TURN and they exchange all of the information needed, but it doesn't send the right Ice Candidates to the TURN server. It might be because Unity answers a bit too fast and it doesn't have the time to get the information from the TURN, but I can be wrong
     
  7. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
    Also, is there any problem with the sample PC browser using RenderStreaming?
    If there is a problem with the PC browser using turn server, could you please provide the log at that time?
     
  8. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    762
    DevDunk likes this.