help - YT iframe - autoplay and mute

Joined
Jun 2, 2013
Messages
17
Reaction score
0
hey guys looking to add a feature to my site, i want to auto play my video and have mute as the default setting.

does anyone know the code for this?
 
hey guys looking to add a feature to my site, i want to auto play my video and have mute as the default setting.

does anyone know the code for this?

Changing the player volume

player.mute():Void
Mutes the player.

player.unMute():VoidUn
mutes the player.

player.isMuted():Boolean
Returns true if the player is muted, false if not.

player.setVolume(volume:Number):Void

Sets the volume. Accepts an integer between 0 and 100.

player.getVolume():NumberReturns the player's current volume, an integer between 0 and 100.

Note that getVolume() will return the volume even if the player is muted.

Source: https://developers.google.com/youtube/js_api_reference#Playback_controls
 
Last edited:
Back
Top