> Hi Michael,
> It seems there is a bug right now with setVolume() not working on the
> embedded player even after onYouTubePlayerReady() is called. I was
> able to put together a proof of concept that gets the job done by
> pausing first for the player controls to load before adjusting the
> volume and playing the video:
> http://gdata-issues.googlecode.com/svn/trunk/javascript/youtube/volum...
> The code should be fairly straightforward - the key difference is
> loading the embed with SWFObject (http://code.google.com/p/swfobject/)
> instead of using the normal embed markup.
> Cheers,
> -Jeff
> On May 20, 11:57 am, JohnTesh <thejohnteshradios...@gmail.com> wrote:
> > What code or script is needed to make a YouTube video play at 50%
> > volume when someone visits your site and there is a video on the
> > homepage but you don't want to blast them out of their chair each time
> > they visit? They can adjust the volume slider if they would like it to
> > be louder.
> > What would the exact code be?
> > Also, it would be good to have the code included to make the video
> > autoplay along with volume level set to 50%.
> > As an example, here is code from a youtube video.
> > <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/DMyOrQS01b8&hl=en"></param><param name="wmode"
> > value="transparent"></param><embed src="http://www.youtube.com/v/
> > DMyOrQS01b8&hl=en" type="application/x-shockwave-flash"
> > wmode="transparent" width="425" height="355"></embed></object>
> > What do I have to do?
> > I found this: player.setVolume(volume):Void
> > Sets the volume. Accepts an integer between 0-100. on this page:http://code.google.com/apis/youtube/js_api_reference.html#Examples
> > But have no idea how to use it or make it work.
> > Here is the actual site and the video.http://www.tesh.com We have
> > it so it autoplays now, but we can't figure out how to add the code to
> > make the volume only ay 50%.
> > Thank you for your help.
> > Michael
> > micha...@teshmedia.com