?
Solved

Remove controls from embedded YouTube video?

Posted on 2011-09-21
6
Medium Priority
?
415 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:andreyman3d2k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:rbudj
ID: 36577658
You have to adjust the parameters of the embedded player: http://code.google.com/apis/youtube/player_parameters.html
0
 
LVL 6

Author Comment

by:andreyman3d2k
ID: 36577719
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
 
LVL 3

Accepted Solution

by:
mykde earned 2000 total points
ID: 36578470
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Author Comment

by:andreyman3d2k
ID: 36580602
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
 
LVL 3

Expert Comment

by:mykde
ID: 36581550
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
 
LVL 6

Author Closing Comment

by:andreyman3d2k
ID: 36581665
Awesome, exactly what I needed!
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question