-
Notifications
You must be signed in to change notification settings - Fork 20
Local Overrides Sample: Unmute Audio
If this script is pasted into your ui3-local-overrides.js file, it will unmute the audio and set it to max volume every time UI3 is opened, by overriding the settings that remember these values. This does not and can not bypass the web browser's requirement for user input to occur before audio can be played.
To learn more about ui3-local-overrides.js, see: Local Overrides Scripts and Styles
/*
THIS IS FOR ADVANCED USE ONLY
If you want to modify UI3's default behavior,
you must rename this file (if necessary) to "ui3-local-overrides.js"
and place it in the "ui3" subdirectory where "ui3.js" is located.
"ui3-local-overrides.js" is not included with Blue Iris and should
not be overwritten by updates.
*/
// Category "Uncategorized"
// Settings Key Value Options Window Always Reload Generation
OverrideDefaultSetting("ui3_audioVolume", "1.0", true, true, 1);
OverrideDefaultSetting("ui3_audioMute", "0", true, true, 1);Below is an AI-generated answer for how to make a web browser allow audio to be played on a specific website without user interaction:
Modern browsers significantly restrict automatic audio playback without user interaction to improve user experience and prevent intrusive sounds. However, you can configure browser settings to allow specific websites to autoplay audio.
For Google Chrome:
- Open Chrome's Settings.
- Navigate to Privacy and security > Site Settings.
- Under "Permissions," select Sound.
- You can choose to "Allow sites to play sound" (default) or "Don't allow sites to play sound."
- To allow a specific site, under "Allow," click Add and enter the website's URL.
For Mozilla Firefox:
- Open the website in question.
- Click the Site Information icon (usually a padlock or 'i') in the address bar.
- In the drop-down panel, locate the Autoplay setting.
- Change the setting from "Block Audio" or "Block Audio and Video" to Allow Audio or Allow Audio and Video.
For Microsoft Edge:
- Open Edge's Settings.
- Navigate to Cookies and site permissions > Media autoplay.
- You can choose Allow to enable autoplay for all websites or Limit to restrict it. [1]
- You can add specific sites to an "Allow" list within the same settings area.
Important Considerations:
- Browser-Specific Settings: Autoplay settings are browser-dependent, so you need to configure them in each browser you use.
- User Interaction: Even with these settings, some browsers might still require a minimal user interaction (like a click anywhere on the page) to initiate audio playback for security and privacy reasons.
- Media Engagement Index (MEI): Chrome utilizes an MEI to determine a user's likelihood of wanting autoplaying audio, based on past interactions. Sites with a high MEI are more likely to be allowed to autoplay.
AI responses may include mistakes.
[1] https://forum.babylonjs.com/t/unlock-the-sound-when-scene-start/38941