Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to set Volume level at start of YouTube Video on website?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JohnTesh  
View profile  
 More options May 20 2008, 2:57 pm
From: JohnTesh <thejohnteshradios...@gmail.com>
Date: Tue, 20 May 2008 11:57:32 -0700 (PDT)
Local: Tues, May 20 2008 2:57 pm
Subject: How to set Volume level at start of YouTube Video on website?
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Fisher  
View profile  
 More options May 20 2008, 6:10 pm
From: Jeff Fisher <jfis...@youtube.com>
Date: Tue, 20 May 2008 15:10:55 -0700 (PDT)
Local: Tues, May 20 2008 6:10 pm
Subject: Re: How to set Volume level at start of YouTube Video on website?
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JohnTesh  
View profile  
 More options May 20 2008, 6:50 pm
From: JohnTesh <thejohnteshradios...@gmail.com>
Date: Tue, 20 May 2008 15:50:50 -0700 (PDT)
Local: Tues, May 20 2008 6:50 pm
Subject: Re: How to set Volume level at start of YouTube Video on website?
Jeff,
 you are incredible. That is very cool.

Is there a way for it to autoplay even if it pauses for a couple
seconds and have the volume start at 50%?
Can you also post the complete code for me with the changes?

I tried to look through your code and I couldn't find how you changed
the volume.

Here is a one of our videos again, but with your code, I only changed
the youtube link so it would link to the proper 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>

Thank you so much.

Michael

On May 20, 3:10 pm, Jeff Fisher <jfis...@youtube.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google