Tuesday, 14 September 2021

Networked aframe dynamic rooms not working with easy rtc

Issue

Hi, I've remixed a template for networked aframe dynamic rooms using a form:

https://glitch.com/edit/#!/power-lily-pancake?path=public%2Fscene.html%3A41%3A0

For some reason whenever I add these lines of code to the <a-scene > tag, the entire project breaks:

networked-scene="
      room: audio;
      adapter: easyrtc;
      audio: true;
      video: true;
      debug: true;
      inspector=https://cdn.jsdelivr.net/gh/aframevr/aframe-inspector@master/dist/aframe-inspector.min.js"

I'm wondering if there is a way too add those lines of the code to the <a-scene> tag so it looks like this:

    <a-scene dynamic-room networked-scene="
      room: audio;
      adapter: easyrtc;
      audio: true;
      video: true;
      debug: true;
      inspector=https://cdn.jsdelivr.net/gh/aframevr/aframe-inspector@master/dist/aframe-inspector.min.js"
>

But have it so the dynamic rooms are still working. Meaning if two people are in different rooms they will not see each other, but if they are in the same room they will be able to see each other. How can this be done?

Links

A-frame website: https://aframe.io

Networked A-frame documentation: https://www.npmjs.com/package/networked-aframe

Project containing my current code: https://glitch.com/edit/#!/power-lily-pancake?path=public%2Fscene.html%3A41%3A0



from Networked aframe dynamic rooms not working with easy rtc

No comments:

Post a Comment