Set audio and scaling via environment variables? #254
-
The vnc always launches with audio muted and often enough it loses track of the scaling settings -- is there a way to set scaling and sound volume via environment variable? Soundrecorder service is activated when I set the volume to antything other than default, so must I evable this service? Essentially, I don't want to have to touch the settings menu when I start browsing. Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is expected: browsers don't allow a web page to automatically play sound without user action.
Scaling settings are saved by the browser. So if you use the same browser and don't clear the cache/cookies, the settings should be kept. Could you provide more details about the conditions required to reproduce this problem? |
Beta Was this translation helpful? Give feedback.
To my knowledge, the problem is that the audio API must first be called from a callback triggered by a user input (e.g. a click). In other words, if you call, when loading the page, the same function that is called when clicking the unmute button, it won't work. This is a protection added by browsers to prevent a page from playing audio automatically, which would be problematic for users!