Solved

Remove controls from embedded YouTube video?

Posted on 2011-09-21
6
400 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
  • 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 500 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now