Add feedback and iOS notice when connecting webcams

This commit is contained in:
Noah 2023-06-25 14:36:26 +00:00
parent 0f270a0390
commit 3c1ad4ec6d
2 changed files with 28 additions and 0 deletions

19
settings.toml-bak Normal file
View File

@ -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!"]

View File

@ -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 <strong>${user.username}</strong>'s camera which should (hopefully) appear on your screen soon.<br><br>`+
`<strong class="has-text-danger">Notice:</strong> 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 <em>most</em> 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") {