diff --git a/public/chat.html b/public/chat.html index 260580d..5cbbd34 100644 --- a/public/chat.html +++ b/public/chat.html @@ -47,10 +47,10 @@

- +

No webcam input

- +
diff --git a/public/css/chat.css b/public/css/chat.css index 5d26b95..7a4e5f8 100644 --- a/public/css/chat.css +++ b/public/css/chat.css @@ -548,4 +548,22 @@ button:hover { } } +/*Hide video controls on mobile*/ +/*todo: still buggy on iOS, play/pause button pops up on load for iOS, + goes away after you press pause then play again*/ +video ::-webkit-media-controls-panel { + display: none !important; + -webkit-appearance: none; +} + +video ::--webkit-media-controls-play-button { + display: none !important; + -webkit-appearance: none; +} + +video ::-webkit-media-controls-start-playback-button { + display: none !important; + -webkit-appearance: none; +} + /* End mobile layout */ diff --git a/public/js/chat.js b/public/js/chat.js index dd23f41..a284320 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -838,20 +838,20 @@ function togglePictureInPicture() { function startUp() { // Redirect mobile browsers - if ( - /webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - alert( - "Zipcall is not currently supported on mobile. Please try again on desktop." - ); - window.location.href = "/notsupported"; - } + // if ( + // /webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // alert( + // "Zipcall is not currently supported on mobile. Please try again on desktop." + // ); + // window.location.href = "/notsupported"; + // } // Redirect unsupported browsers if (!isWebRTCSupported || browserName === "MSIE") { alert( - "Your browser doesn't support Zipcall. Please use Chrome, Firefox, or Safari on laptop/desktop." + "Your browser doesn't support Zipcall. Please use Chrome, Firefox, or Safari. If using iOS please use Safari" ); window.location.href = "/notsupported"; }