Skip to content

Commit 0374eeb

Browse files
authored
Merge pull request #507 from ant-media/fix-behind-nat
Add option to debug signaling endpoint
2 parents a8821c1 + bc248f1 commit 0374eeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/webapp/player.html

+12
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ <h3 class="col text-muted">
181181
}
182182
});
183183

184+
var signaling = getUrlParameter("signaling");
185+
if (signaling == "true") {
186+
signaling = true;
187+
}
188+
else {
189+
signaling = false;
190+
}
184191

185192
var subscriberId = getUrlParameter("subscriberId");
186193
var subscriberCode = getUrlParameter("subscriberCode");
@@ -327,6 +334,11 @@ <h3 class="col text-muted">
327334
if (location.protocol.startsWith("https")) {
328335
websocketURL = "wss://" + path;
329336
}
337+
338+
if (signaling) {
339+
//add signaling suffix to the websocket URL
340+
websocketURL += "/signaling";
341+
}
330342

331343
const ctx = document.getElementById('fpsChart').getContext('2d');
332344
const fpsChart = new Chart(ctx, {

0 commit comments

Comments
 (0)