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

Integrating unity's WebRTC client with a media server

Discussion in 'Unity Render Streaming' started by PurplePineapples, May 9, 2022.

  1. PurplePineapples

    PurplePineapples

    Joined:
    Sep 21, 2017
    Posts:
    3
    Hi all, I was wondering if someone has managed to set up the webrtc plugin to work with a media server(SFU/MCU) to facilitate large group calls. I've looked at server software like Janus, Kurento, Openvidu and Jitsi videobridge but I find it hard to judge their compatibility since I'm pretty new to webrtc. The examples they provide are mostly web-based applications, which is why i wonder if some can only be used with front-end software from the same project (like jitsi Videobridge and jitsi Meet.)

    I did find this unity SFU integration, but it seems to use a different webrtc plugin than the one provided in the official unity package.
    https://github.com/shiguredo/sora-unity-sdk
    Any tips or help is much appreciated :)
     
  2. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    43
    We haven't provided it as our sample, but we provide the basic functionality needed for WebRTC, so if you signaling it correctly, you can send and receive video.

    In other words, it is necessary to implement the same thing as the SDK provided by JS on the Unity side.
     
  3. bartix96pl

    bartix96pl

    Joined:
    May 31, 2019
    Posts:
    6
    It works well with OpenVidu (with kurento media server underhood), like @kannan-xiao4 said you have to write your own client for OpenVidu(handle rpc messages) in Unity.
     
  4. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    543
    I have never heard the SFU service OpenVidu yet. Thank you for tell us!
    It would be great if you share our community how to integrate Unity and SFU service.
     
  5. dipak_unity777

    dipak_unity777

    Joined:
    Dec 1, 2021
    Posts:
    6
    We did something similar, and have developed unity native plugins for Android/iOS which are built on the Jisti Architecture. You can check out the docs at docs.sariska.io
     
    Last edited: Aug 30, 2022