I'm trying to build an app that will need to be able to connect multiple peers together over WebRTC.
I'm working from the example at: https://github.com/webrtc/apprtc
I'm stuck on how to setup what is needed for the following 4 lines of code:
iceServerRequestUrl: '{{ ice_server_url }}',
iceServerTransports: '{{ ice_server_transports }}',
wssUrl: '{{ wss_url }}',
wssPostUrl: '{{ wss_post_url }}',
That would be part of this section of loading parameters:
var loadingParams = {
errorMessages: [],
isLoopback: false,
warningMessages: [],
mediaConstraints: {"audio": true, "video": {"optional": [{"minWidth": "1280"}, {"minHeight": "720"}], "mandatory": {}}},
offerOptions: {},
peerConnectionConfig: {"rtcpMuxPolicy": "require", "bundlePolicy": "max-bundle", "iceServers": []},
peerConnectionConstraints: {"optional": []},
iceServerRequestUrl: '{{ ice_server_url }}',
iceServerTransports: '{{ ice_server_transports }}',
wssUrl: '{{ wss_url }}',
wssPostUrl: '{{ wss_post_url }}',
bypassJoinConfirmation: false,
versionInfo: {"gitHash": "06b18b54af995bab9e16c2648ddb7edbbe553541", "branch": "master", "time": "Mon Sep 14 17:52:24 2020 +0200"},
};
I understand that a web socket is needed, but I'm unsure how to set this up for a web app. I'm working with cPanel.
How do I set up the iceServerRequestUrl, iceServerTransports, wssUrl, and wssPostUrl?