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. Dismiss Notice

Question WebRTC Receive Stream in Unity on Oculus Quest

Discussion in 'VR' started by mrphilipjoel, Mar 2, 2022.

  1. mrphilipjoel

    mrphilipjoel

    Joined:
    Jul 6, 2019
    Posts:
    36
    Greetings,

    I am working on a project where I receive a WebRTC 360 video stream, and display it either as skybox, or inside a sphere. This will be viewed in the App on the Oculus Quest.

    I'm currently using an SDK by AntMedia, and I have it working in the Editor. With Oculus Link, I can even view the webRTC stream playing from Unity Editor.

    However, when I build to the Oculus Quest, the stream image doesn't load, and the OVRCamera freezes (i can't look around), but I get live Audio.

    Does anyone have any solutions on being able to see the webRTC video stream or why it freezes on Oculus Quest build?

    My thoughts are maybe I need different build settings.
    AntMedia says their SDK requires vulkan, but when I switch to Vulkan, it quits working in the editor, and in the headset. In fact, it crashes the editor, and crashes the app in the headset.

    AntMedia says they haven't found a solution for VR yet, but I don't think they've put a lot of time into it.

    Maybe someone knows what I'm missing, or can provide another solution to consume a live WebRTC stream in a Unity app inside the Oculus Quest.

    Thank you!
     
  2. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    48
    @mrphilipjoel did you ever find a solution for this? Thanks!