Remove controls from embedded YouTube video?

Hi,

I would like to add a youtube video to my site, but I would like to remove the controls. I woould just like the user to be able to click on the video to play, and click again to pause. Maybe the fullscreen option also. Nothing else. Is this possible? If so how could it be done?

Thanks in advance for any info!

Andrey
LVL 6
andreyman3d2kAsked:
Who is Participating?
 
mykdeConnect With a Mentor Commented:
Here is a an Example:

<iframe width="560" height="315" src="http://www.youtube.com/embed/pIGgGV7uwU4?controls=0" frameborder="0" allowfullscreen></iframe>

Open in new window

0
 
rbudjCommented:
You have to adjust the parameters of the embedded player: http://code.google.com/apis/youtube/player_parameters.html
0
 
andreyman3d2kAuthor Commented:
I tried, but it didn't work for me. I tried to add the line:

controls="0"

But it had no effect. I tried reading the API material, but it's a bit over my head.

Andrey
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
andreyman3d2kAuthor Commented:
Ah, it goes into the URL - I see. Thanks!

Last question - turning off controls removes the fullscreen option - is there a way to have only that one option available?

Thank you,

Andrey
0
 
mykdeCommented:
I do not see in the documentation anyway to show only the full screen button.

However the example above will enter full screen if you double click on the movie while it is playing.
0
 
andreyman3d2kAuthor Commented:
Awesome, exactly what I needed!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.