When watching a video on YouTube (like millions of us do)–including embedded YouTube videos–there are a few keyboard shortcuts you can take advantage of:
Spacebar = Play/Pause
Arrow Right = jump forward
Arrow Left = jump backward
Arrow Up = Volume Up
Arrow Down = Volume Down
F11 = view in Full Screen mode (more of a browser feature, not a YouTube feature so it may or may not work)
When embedding a video, you can add some code to disable keyboard shortcuts:
<iframe title=”YouTube video player” type=”text/html” width=”1280″ height=”750″ src=”http://www.youtube.com/embed/JYuGbh8frqY?rel=0&hd=1;” allownetworking=”internal” frameborder=”0″></iframe>
Then just add the red-colored text:
<iframe title=”YouTube video player” type=”text/html” width=”1280″ height=”750″ src=”http://www.youtube.com/embed/JYuGbh8frqY?rel=0&disablekb=1&hd=1;” frameborder=”0″></iframe>
Note: The reason you add & in addition is because that tells the embed code that there’s another parameter behind it–this isn’t the last parameter. We could put …..?rel=0&hd=1&disablekb=1;” instead. It doesn’t matter which order you put the additional parameter in.
I don’t know why you would want to disable keyboard shortcuts, but I hope this post was helpful!
As I play around with it, the keyboard shortcuts seem to be “captured” by the YouTube window. Is there any way (using the keyboard) to get the focus of the keyboard controls _out_ of that window? If you click the mouse cursor outside the window, the link is broken. You’d think Esc would work, but it doesn’t.
Also, in my Firefox browser, pressing F changes the embedded video to full-screen and Esc takes it out of full-screen mode.
Rocky, Thanks for your comment and additional tips. Do you have a YouTube link to use as an example? Is your question only referring to when the video is playing in full-screen?
~Cliff
YouTube Keyboard Shortcuts
When watching a video on YouTube (like millions of us do)–including embedded YouTube videos–there are a few keyboard shortcuts you can take advantage of:
When embedding a video, you can add some code to disable keyboard shortcuts:
disablekb=0 (YouTube’s Default)
disablekb=1 (Disable Keyboard Shortcuts)
For example:
If the YouTube-generated embed code is this:
<iframe title=”YouTube video player” type=”text/html” width=”1280″ height=”750″ src=”http://www.youtube.com/embed/JYuGbh8frqY?rel=0&hd=1;” allownetworking=”internal” frameborder=”0″></iframe>
Then just add the red-colored text:
<iframe title=”YouTube video player” type=”text/html” width=”1280″ height=”750″ src=”http://www.youtube.com/embed/JYuGbh8frqY?rel=0&disablekb=1&hd=1;” frameborder=”0″></iframe>
Note: The reason you add & in addition is because that tells the embed code that there’s another parameter behind it–this isn’t the last parameter. We could put …..?rel=0&hd=1&disablekb=1;” instead. It doesn’t matter which order you put the additional parameter in.
I don’t know why you would want to disable keyboard shortcuts, but I hope this post was helpful!
2 replies to “YouTube Keyboard Shortcuts”
Rocky
Thanks for the tips!
As I play around with it, the keyboard shortcuts seem to be “captured” by the YouTube window. Is there any way (using the keyboard) to get the focus of the keyboard controls _out_ of that window? If you click the mouse cursor outside the window, the link is broken. You’d think Esc would work, but it doesn’t.
Also, in my Firefox browser, pressing F changes the embedded video to full-screen and Esc takes it out of full-screen mode.
Thanks,
Rocky
TourKick.com
Rocky, Thanks for your comment and additional tips. Do you have a YouTube link to use as an example? Is your question only referring to when the video is playing in full-screen?
~Cliff
Comments are closed.