diff --git a/index.php b/index.php index 52ce39c..cac4748 100644 --- a/index.php +++ b/index.php @@ -20,26 +20,15 @@ if (!isset($_GET['eventSource'])) { // show HTML CSS and Javascript } .videos { height: 100%; - pointer-events: none; - position: absolute; width: 100%; } - #localVideo { + #localVideo, #remoteVideo { height: 100%; max-height: 100%; max-width: 100%; object-fit: cover; width: 100%; } - #remoteVideo { - display: block; - height: 100%; - max-height: 100%; - max-width: 100%; - object-fit: cover; - position: absolute; - width: 100%; - } @@ -97,7 +86,7 @@ if (!isset($_GET['eventSource'])) { // show HTML CSS and Javascript // Websocket-hack: onmessage is extended for receiving - // multiple events at once for speed, becase the polling + // multiple events at once for speed, because the polling // frequency of EventSource is just once every few seconds. ws.onmessage = function(e) { if (e.data.includes("_MULTIPLEVENTS_")) { @@ -116,7 +105,6 @@ if (!isset($_GET['eventSource'])) { // show HTML CSS and Javascript publish('client-call', null) } ); - }).catch(function (e) { console.log("Problem while getting audio video stuff "+e); @@ -217,13 +205,12 @@ if (!isset($_GET['eventSource'])) { // show HTML CSS and Javascript