Skip to content

Commit

Permalink
Fixed issues starting with VideoRehab service on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed May 13, 2024
1 parent b6ab857 commit 342ee24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
//});

}

Expand Down Expand Up @@ -120,4 +120,4 @@ function participantLogoutSuccess(response, status, request){

function participantLogoutError(event, status){
console.log("Participant logoutError: " + status.status + " : " + status.responseText);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -104,4 +106,4 @@ function ws_MessageReceived(evt){
function waitDialogTimeout(){
console.log("Joining session now!");
joinSession();
}
}

0 comments on commit 342ee24

Please sign in to comment.