Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author zigvt85

    (@zigvt85)

    So like in the widget you can choose to have it muted then if the user wants the volume on he can turn it back up? I am sure it can be done I will have to look into it this week. Glad it seems to be working without errors finally.

    Plugin Author zigvt85

    (@zigvt85)

    Well to get it muted I need to embed some java script with the code. So this feature is not impossible just need to find the time to figure it all out. Maybe next update it will be in :).

    Plugin Contributor roycegracie

    (@roycegracie)

    hi awozny, what you need to do is to add “volume=”0” to the IFRAME that is showing the videos.
    please look at the file:
    widget.php

    and look at line 32:
    <iframe width="<?php echo $width; ?>" height="<?=$height?>" src="https://www.youtube.com/embed/<?php echo $url; ?>?<?php if($options['autoplay']==1){?>rel=0&autoplay=1<?php } ?>" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

    replace it with:
    <iframe width="<?php echo $width; ?>" height="<?=$height?>" src="https://www.youtube.com/embed/<?php echo $url; ?>?<?php if($options['autoplay']==1){?>rel=0&autoplay=1<?php } ?>" frameborder="0" allowfullscreen="allowfullscreen" volume="0"></iframe>

    good luck !

    zigvt85, we should add this feature to the widget as a new feature, lets talk via email bro.

    Plugin Author zigvt85

    (@zigvt85)

    Ok, I will do a test this weekend I need to get back into website related stuff anyways. Sorry I am just one person but with the help from the community we can make this plugin great! Maybe add an option so users can simply choose to have it off or on :).

    Thread Starter awozny

    (@awozny)

    Hello,

    I made the appropriate changes as suggested above, but it did not make any difference. Adding the volume=”0″ variable did nothing. Has anyone else got this modification o work properly? Any other ideas? Please advise.

    Awozny

    Plugin Contributor roycegracie

    (@roycegracie)

    Plugin Author zigvt85

    (@zigvt85)

    We need to integrate a JavaScript code I have been trying to make the volume go to mute. I am having trouble with this and the other person that helped out with this plugin I can not get a hold of right now. I did try his volume fix but like you said it does nothing on modern browsers they have removed that function.

    Javascripts doesn’t work anymore.

    I’ve tried this one and it works perfectly!

    Using the JWplayer.

    https://iwemo.com/embed-video-autoplay-and-mute/

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is there a way to have the sound muted when it autoplays’ is closed to new replies.