From 3c1ad4ec6d715acd44e2875150ea586e9be0a287 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 25 Jun 2023 14:36:26 +0000 Subject: [PATCH] Add feedback and iOS notice when connecting webcams --- settings.toml-bak | 19 +++++++++++++++++++ web/static/js/BareRTC.js | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 settings.toml-bak diff --git a/settings.toml-bak b/settings.toml-bak new file mode 100644 index 0000000..956fdb4 --- /dev/null +++ b/settings.toml-bak @@ -0,0 +1,19 @@ +WebsiteURL = "http://localhost:8080" +Title = "BareRTC" +Branding = "BareRTC" + +[JWT] + Enabled = false + Strict = false + SecretKey = "hello" + +[[PublicChannels]] + ID = "lobby" + Name = "Lobby" + Icon = "fa fa-gavel" + WelcomeMessages = ["Welcome to the chat server!", "Please follow the basic rules:\n\n1. Have fun\n2. Be kind"] + +[[PublicChannels]] + ID = "offtopic" + Name = "Off Topic" + WelcomeMessages = ["Welcome to the Off Topic channel!"] diff --git a/web/static/js/BareRTC.js b/web/static/js/BareRTC.js index f304c6b..f53adb1 100644 --- a/web/static/js/BareRTC.js +++ b/web/static/js/BareRTC.js @@ -1141,6 +1141,15 @@ const app = Vue.createApp({ // Responsive CSS -> go to chat panel to see the camera this.openChatPanel(); + + // Send some feedback to the chat window. + this.ChatClient( + `A request was sent to open ${user.username}'s camera which should (hopefully) appear on your screen soon.

`+ + `Notice: webcam sharing currently does not work well with iPhones, iPads or Safari browsers. It should generally `+ + `work well on Firefox or Chrome-like browsers on most devices (including Macbooks) but at this time there is no working `+ + `option for iPhone/iPad. (Chrome-like browsers also include Edge, Brave, or Opera). If their video does not open or you get a blank `+ + `screen, try logging on from a different web browser.` + ); }, closeVideo(username, name) { if (name === "offerer") {