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
|
@@ -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
|
-
//"
|
|
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);
|