remoterigs-raspberrypi 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "remoterigs-raspberrypi",
3
3
  "type": "module",
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "main": "./index.js",
6
6
  "files": [
7
7
  "index.js",
@@ -121,10 +121,12 @@ export default class WebRTCStreamerWrapper {
121
121
  else {
122
122
  this.Log("webrtc-streamer not running, starting it...");
123
123
  }
124
+ const stunServer = this.clientRTCConfigurationViewModel.stunServer ?? "";
124
125
  const args = [
125
126
  "-H", `0.0.0.0:${this.STREAMER_PORT}`,
126
- "-s",
127
- //"--stun", this.clientRTCConfigurationViewModel.stunServer,
127
+ // "-s<host:port>" (no space): our own STUN server, so the rig also has a public (srflx) candidate;
128
+ // "-s-" = no STUN
129
+ stunServer != "" ? `-s${stunServer}` : "-s-",
128
130
  ];
129
131
  if (turnServer != "") {
130
132
  args.push("--turn", turnServer);