Thursday, March 8, 2012

[YouTube-API] Re: Keyboard Actions Accessible without Click

Jeff-

Thanks for suggesting tab. That does work on the HTML5 player but
it's going to be a little weird to tell my users to tab 3 or 5 times
to start the video.

In case that's not clear: My page opens with focus on the element
before the YouTube iframe. Pressing tab once moves to the iframe but
the space bar does nothing until I press tab two more times. Then the
video will start if I press space bar. If I press tab two more times
(for a total of five) I see that focus is now on the play/pause button
which can also be used from the keyboard.

That's better than no keyboard access but it's still a weird user
experience.

Thanks for the suggestion.

-Ginny


On Mar 7, 1:39 pm, Jeffrey Posnick <je...@google.com> wrote:
> Hello Ginny,
>
>  You should just be able to tab into the control area on the HTML5
> <video> player when starting on the containing page. I just tried
> doing so on
>
>  http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
>
> using Chrome on OS X, and it worked fine. Doing something special with
> the focus shouldn't be needed.
>
>  The Flash player is a different story, though. If you saw some issues
> with tabbing into the controls, maybe the <iframe> embed was using the
> Flash player?
>
> Cheers,
> -Jeff Posnick, YouTube API Team
> groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> @YouTubeDev
>
> On Mar 6, 1:47 am, Ginny Hendry <ginnyhen...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I've got the video running on my web page and everything is OK except
> > this:  For accessibility the web page should be usable without a mouse
> > but the only way to get at the keyboard actions in the YouTube player
> > is to click on the video with the mouse and then use the keyboard to
> > navigate to the various YouTube controls.
>
> > I really need to set focus or trigger a click event from JQuery that
> > will have the same effect as the user clicking on the video with a
> > mouse, but I haven't been able to figure out how to do that.  What ID
> > can accept focus or a click event?
>
> > It's the HTML5 player so I expect the place to put this is in the
> > onReady event of onYouTubePlayerAPIReady.
>
> > Any ideas?
>
> > Thanks.

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment