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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Official WebRTC package FAQ

Discussion in 'Unity Render Streaming' started by kazuki_unity729, Jul 5, 2022.

  1. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
    Please feel free to ask questions and sugfgestions about WebRTC packge.
     
  2. Fire_Preserver

    Fire_Preserver

    Joined:
    Sep 10, 2022
    Posts:
    1
    Does renderstream + WebRTC support adaptive bitrate streaming (e.g. for wireless networks)? Or does the server just set the bitrate according to the rates reported by the client's browser?
    Do you have any recommendations when streaming to a mobile phone over 4G/5G ?
     
  3. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
  4. skalasib

    skalasib

    Joined:
    Sep 7, 2022
    Posts:
    1
    How do I compile WebRTC native code into dynamic shared library file that can be used by the WebRTC unity package?

    The end-to-end latency provided by default WebRTC is as high as 150-200 ms even with when network latency is <5 ms. I am making changes to WebRTC native code to reduce latency. I wanted to know what is the correct way to compile webRTC to be used as a plugin in the WebRTC package.

    I see a unityplugin folder in the webrtc codebase, but no instructions on how to compile. Only Android instructions are present, but running ninja -C out/Default webrtc_unity_plugin doesn't work. (ninja: error: unknown target 'webrtc_unity_plugin')
     
  5. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
  6. a80008a

    a80008a

    Joined:
    Mar 7, 2019
    Posts:
    1
    Hi~
    1. Developing desktop programs using Unity (using Unity WebRTC)
    2. Developing apps with android studio (using google webrtc)
    (Not building Android with Unity)

    Are Unity WebRTC and Google webrtc connected?
    Is there a Unity WebRTC library that I can use in Android studio?
     
  7. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
    > Are Unity WebRTC and Google webrtc connected?
    Yes.

    > Is there a Unity WebRTC library that I can use in Android studio?
    Could you tell me more detail?
     
  8. mcfadyeni

    mcfadyeni

    Joined:
    Sep 1, 2022
    Posts:
    3
    Hey.

    Just getting started with Unity's WebRTC package and I'm curious about the GC allocation/performance impact.

    I'm planning on using Data Channels pretty heavily to send messages (sending/receiving upwards of 120 small msg per second) and since this plugin seems to provide a fresh `byte[]` buffer on every OnMessage call I wondered how that's allocated/how that would impact perf.
     
  9. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
    @mcfadyeni
    You are right.
    We haven't implemented the API for optimized method for receiving message from DataChannel.
    We will add the task for the issue. Thank you!
     
    mcfadyeni likes this.