diff --git a/teraserver/python/services/VideoRehabService/static/js/opentera_participant_login.js b/teraserver/python/services/VideoRehabService/static/js/opentera_participant_login.js index 6ecbe3c5..fc4c3e73 100644 --- a/teraserver/python/services/VideoRehabService/static/js/opentera_participant_login.js +++ b/teraserver/python/services/VideoRehabService/static/js/opentera_participant_login.js @@ -3,16 +3,16 @@ let timeout = 0; let loaded = false; function loginParticipant(){ - document.getElementById('mainview').src = "participant_localview?token=" + participant_token + "&source=" + + /*document.getElementById('mainview').src = "participant_localview?token=" + participant_token + "&source=" + clientSource; - $('#mainview').on('load', function() { + $('#mainview').on('load', function() {*/ if (ws === undefined && !loaded){ // No websocket connection - login participant console.log("Mainview loaded - login participant...") loaded = true; doParticipantLogin(backend_hostname, backend_port, participant_token); } - }); + //}); } @@ -120,4 +120,4 @@ function participantLogoutSuccess(response, status, request){ function participantLogoutError(event, status){ console.log("Participant logoutError: " + status.status + " : " + status.responseText); -} \ No newline at end of file +} diff --git a/teraserver/python/services/VideoRehabService/static/js/opentera_websockets.js b/teraserver/python/services/VideoRehabService/static/js/opentera_websockets.js index 45d2f0ed..f01aa80c 100644 --- a/teraserver/python/services/VideoRehabService/static/js/opentera_websockets.js +++ b/teraserver/python/services/VideoRehabService/static/js/opentera_websockets.js @@ -31,6 +31,8 @@ function ws_Opened(){ console.log("Websocket opened"); document.getElementById("imgStatus").src="./static/images/green_button.png"; sessionStorage.removeItem("websocket_url"); + document.getElementById('mainview').src = "participant_localview?token=" + participant_token + "&source=" + + clientSource; } function ws_Error(error){ @@ -104,4 +106,4 @@ function ws_MessageReceived(evt){ function waitDialogTimeout(){ console.log("Joining session now!"); joinSession(); -} \ No newline at end of file +}