Skip to content

Commit

Permalink
Merge pull request #507 from ant-media/fix-behind-nat
Browse files Browse the repository at this point in the history
Add option to debug signaling endpoint
  • Loading branch information
mekya authored Oct 31, 2024
2 parents a8821c1 + bc248f1 commit 0374eeb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/webapp/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ <h3 class="col text-muted">
}
});

var signaling = getUrlParameter("signaling");
if (signaling == "true") {
signaling = true;
}
else {
signaling = false;
}

var subscriberId = getUrlParameter("subscriberId");
var subscriberCode = getUrlParameter("subscriberCode");
Expand Down Expand Up @@ -327,6 +334,11 @@ <h3 class="col text-muted">
if (location.protocol.startsWith("https")) {
websocketURL = "wss://" + path;
}

if (signaling) {
//add signaling suffix to the websocket URL
websocketURL += "/signaling";
}

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

0 comments on commit 0374eeb

Please sign in to comment.