Foliovision › Forums › FV Player › Requests and Feedback › ver 2.1.2 start video muted
-
Hi,
Thanks for building this great plugin.
With testing with different plugins yours is the most complete.One question though. The orginal flowplayer has a option to start a video muted.
Is it possible with your player and how do i do this. I’ve check the flowplayer/flowplayer.min.js but apparently i’m guessing the from things to edit.. i usually just break the player.
So if you could point me in the right direction, it would be sweet.
Thanks in advance.
-
-
UPDATE: Global default volume added in 2.2.15
Hello dstrijk,
you need to add data-volume=”0″ to the Flowplayer DIV element, see here: http://flowplayer.org/docs/#html-configuration
So you would have to modify <div id=”wpfp_…> in fv-wordpress-flowplayer/models/flowplayer-frontend.php.
Or if you want to make this a global setting, you should be able to use this somewhere at the end of your WordPress template HEAD section: http://flowplayer.org/docs/#global-configuration
Just like this:
<br />
<script><br />
flowplayer.conf = {<br />
volume: 0;<br />
}<br />
</script><br />However we will try to make this easier in some of the next versions.
Please note that controlling volume won’t work on iOS: http://flowplayer.org/docs/known-issues.html
Thanks,
MartinHi,
Still having some issues. But due too problems with my pc i haven’t been able to look at it properly.
I do want to give a tip. The player not starts with the mute button greyed out, because the javascript put it’s muted. But the sound is playing.. so you have to click on it twice to mute the sound.
In flowplayer.min.js I changed the muted value from true to false. Now you just have to click on it once.
Will let you know how it goes with muting the sound on start.
Dominic
Hello Dominic,
new version of the plugin (this week) will contain a WordPress filter on the generated player code. So you will be able to modify all the Flowplayer properties. So you will be able to add data-volume=”0.0″ to the player easily.
I tested this and it was not working though. However new version of Flowplayer core script should have a fix for this in it, so keep checking our change logs and we will mention when we upgrade to new version with this working.
Thanks,
MartinHey,
Just thought I mention it. I still see the muted icoon off while the sound is on. So you have to press it twice.
Probably wise to update the development version of fv-wordpress-flowplayer/flowplayer/flowplayer.min.js with the change:
,finished:!1,loading:!1,muted:l.muted==”false”||u.muted,paused: instead of true.Just a suggestion.
Hello Dominic,
sorry about not getting back to you earlier, we upgraded to latest Flowplayer binary today (plugin version 2.1.10) which I believe should make this work by adding data-volume=”0.0″ to the FV Flowplayer div element, but it does not.
Here’s a workaround, just put this into your template below where fv-wordpress-flowplayer/flowplayer/flowplayer.min.js loads.
<script type="text/javascript">
flowplayer(function (api) {
api.bind("ready", function (e, api) {
api.mute();
});
});
</script>It worked for us in different browsers, but I’m not sure about iPad. If you want to change the volume, you can replace `api.mute();` with `api.volume(0.5)`. Just make sure you clear your browser cache.
Thanks,
MartinWow. Lot’s of updates and some very quick support. Thanks again guys.
The api workaround works.
I’ll keep watching the update logs if there is a change.
But for the upcoming releases it works. Thanks a lot.
Will get back to you, if it works on iOS. My Pad isn’t here at the moment.
Cheers again.
Dominic
Just wanted to get back to you.
Api mute does not work on iOS but it doens’t autoplay either, so it isn’t an issue.
It does play beautifully on all browsers and iphone/ipad. Have to test it on android.. but hey the customer/friend is happy with this player… so i’m happy.
Thanks for all the support. If I need more editing i’ll look into your other tools because your support rocks.
Cheers,
Dominic
None of the suggestions work for me. For instance if I add this as suggested:
<script>
flowplayer.conf = {
volume: 0;
}
</script>The volume control displays correctly but the sound is not muted and is just as loud as ever. Adding data-volume=”0.0″ to the FV Flowplayer div element doesn’t work for me either. And neither does this:
<script type=”text/javascript”>
flowplayer(function (api) {
api.bind(“ready”, function (e, api) {
api.mute();
});
});
</script>I’m testing the latest plugin on Windows 8.1 with Firefox 3 in WordPress 3.9.1. This is a pretty fundamental omission from what is otherwise a great plugin. This one failing is preventing me from buying the pro version.
Please, please, when is this plugin going to get proper preset volume controls (either at a global level, or for individual videos) that don’t require some sort of hack, none of which seem to work anyway?
Thanks,
JohnHello John,
thank you for bringing this up, this task was unfortunately left forgotten.
This feature was added just now. You can read all the details in our blog post: http://foliovision.com/2014/07/flowplayer-default-setting
Thanks,
Martin