Hi guys,
We’re really interested in using the new Pixel Streaming feature. We have, so far, managed to make it work within the local network, thanks to the instructions contained on the Pixel Streaming documentation.
However, when trying to setup the signaling server to work with TURN and STUN servers, in order to be able to stream the app over the Internet, I’m running with an issue.
According to the forementioned documentation, in order for the signaling server to point into the TURN and STUN servers -which will enable outside connections to communicate with the computer running the application- you need to modify the content of the config.json file in the SignallingWebServer folder, adding a value for peerConnectionOptions. However, if I include the information on the servers following the example included on the Reference section of the documentation ( { ‘iceServers’: {‘urls’: <url1>,<url2>,<url3>,…]}] }} ), I get a syntax error when running the batch file to start the signaling server.
Given this, I went to JSONlint to validate the content of the file, and got a validation when replacing the (’) for (") in the **peerConnectionOptions **entry. I then proceeded to make the modifications on the config.json file, only to get the following result:
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at Object.<anonymous> (C:\Program Files\Epic Games\UE_4.21\Engine\Source\Programs\PixelStreaming\WebServers\SignallingWebServer\cirrus.js:121:45)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
This is happening when trying with the IP address of a TURN server running on a VPS, and also when trying to point to the TURN and STUN servers included on the package.
My knowledge of js is very limited (I think that can be pretty obvious by now), so any help or pointing on the right direction will be deeply appreciated.
Thanks!