Skip to content

Commit

Permalink
Fix red-circle in 360 player
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed May 6, 2021
1 parent cea73a1 commit 8b63e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/webapp/360_live.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

<a-entity distance="0.0" video-controls="src:#video"></a-entity>
<a-camera>
<a-cursor color="#FF0000"></a-cursor>
</a-camera>


Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/audio_player.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ <h3 class="text-muted">WebRTC Play</h3>
};

var appName = location.pathname.substring(0, location.pathname.lastIndexOf("/")+1);
var websocketURL = "ws://" + location.hostname + ":5080" + appName + "websocket";
var websocketURL = "ws://" + location.hostname + ":" location.port + appName + "websocket";

if (location.protocol.startsWith("https")) {
websocketURL = "wss://" + location.hostname + ":5443" + appName + "websocket";
websocketURL = "wss://" + location.hostname + ":" + location.port + appName + "websocket";
}

var webRTCAdaptor = new WebRTCAdaptor({
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/audio_publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ <h3 class="text-muted">WebRTC Publish</h3>
};

var appName = location.pathname.substring(0, location.pathname.lastIndexOf("/")+1);
var websocketURL = "ws://" + location.hostname + ":5080" + appName + "websocket";
var websocketURL = "ws://" + location.hostname + ":" + location.port + appName + "websocket";

if (location.protocol.startsWith("https")) {
websocketURL = "wss://" + location.hostname + ":5443" + appName + "websocket";
websocketURL = "wss://" + location.hostname + ":" + location.port + appName + "websocket";
}


Expand Down

0 comments on commit 8b63e35

Please sign in to comment.