ncsoft / Unreal.js

Unreal.js: Javascript runtime built for UnrealEngine
Other
3.66k stars 348 forks source link

Connect to Janus server #304

Open paolomanchisi opened 3 years ago

paolomanchisi commented 3 years ago

Hi, I'm trying to connect to the janus webrtc server. Did anything change or it's impossible to connect to webrtc services with unreal.js? Thank you very much.

ViniciusFXavier commented 3 years ago

You can use this library: https://github.com/node-webrtc/node-webrtc

I recommend using the Node.JS - 14 version

Create a package.json like this: https://github.com/ncsoft/Unreal.js/blob/33329c82871e830586e82bed09dc278135e8c80a/Examples/Content/Scripts/package.json#L1-L15

And import like this example: https://github.com/ncsoft/Unreal.js/blob/33329c82871e830586e82bed09dc278135e8c80a/Examples/Content/Scripts/helloSpringy.js#L157-L158