-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in volume option #1737
Comments
I think this is caused by the local storage that stores the user preferences. I'll find a way to force the update if it's passed via the API. |
+1, same with |
problem for volume Line 65 in fcd8208
I don't think we need a reset we can go with user config Lines 538 to 545 in fcd8208
when problem for captions Lines 95 to 98 in fcd8208
we are giving pref to local storage first rather than config which in my opinion is wrong I can raise a pr in some time if no one is working on it any reason we are resetting the values instead of reading from the config? Lines 65 to 77 in fcd8208
cc: @sampotts |
If we always read from config, what is the point of storing the user settings? There's definitely some improvement to be made but ignoring the user settings isn't the answer. If the user sets volume low, then you change source and it shoots up to 100%, it's not a great experience. |
For us the initial captions and volume options do not work even when we explicitly disable user options storage. |
Expected behaviour
Volume option should set initial volume, e.g
volume: 0.9,
Actual behaviour
Volume is not responsive at all to this option, either in video or audio, e.g in
Steps to reproduce
e.g in
const player = Plyr.setup('.js-playerv', {
volume: 1.0,
tooltips: { controls: true },
captions: { defaultActive: true }
});
However a direct change via API does work, e.g
player.volume = 0.75;
In fact pointed out previously in a somewhat obscure fashion, but not sure why nobody has noticed this before. #848
Environment
Console errors (if any)
Link to where the bug is happening
The text was updated successfully, but these errors were encountered: