Skip to main content
Participating Frequently
April 4, 2008
Question

Need help with FLVPlayback CS3 activating keyboard access

  • April 4, 2008
  • 10 replies
  • 1379 views
How do I enable keyboard control on a video displayed in the CS3 FLVPlayback component? I have captioning working using the FLVPlaybackCaptioning component and a SMIL file. I added the ActionScript fix to turn off captioning at the movie start. Using a mouse, everything works just fine. Now I need to set the control for keyboard accessibility. I've searched and searched and cannot find out the ActionScript to do this short of starting over and using the third-party Captionate tool and component. How do I enable keyboard accessibility using these native CS3 components?

...Tim
This topic has been closed for replies.

10 replies

Participating Frequently
June 19, 2008
Hi,

I'm also trying to create a section 508 accessible video player for my university. Have you had any success with a compliant controller, and if so, do you have any tips?

Thanks

Dave
kglad
Community Expert
Community Expert
April 8, 2008
you're welcome.
kglad
Community Expert
Community Expert
April 8, 2008
to fix the tabbing issue with the arrow keys: create a dummy textfield or some other object and place that in your tab order immediately after your seekbar (and create another one and place it just before your seekbar in the tab order).

then create listeners that detect when these textfields gain focus and when they do, change focus back to your seekbar. likewise for your volume control.
kglad
Community Expert
Community Expert
April 7, 2008
agreed. i don't know how to expose the buttons and i can't think of any work-around.

you might start a new thread with that explicit title (referencing the default flvplayback buttons) to see if anyone else has any ideas. maybe someone else can help.
TK20109Author
Participating Frequently
April 7, 2008
That set does not include a CC button. I'd have to create my own. Pretty much build a new playback component from scratch. If only the buttons on FLVPlayback were exposed I'd just set som ActionScript to handle tabbing there.
Participant
April 7, 2008
I, too, am having the same problem. Unfortunately, I finally just gave up trying to find how to use the keyboard controls with the default component and created my own buttons--which was easy enough, just time consuming (something I didn't need it to be!).

Now the problem I'm having is that I want to use my arrow keys to adjust the volume and the seekbar. Easy enough--except that I *cannot* disable their natural tabbing function! I want the Up/Down arrow keys for volume control and Left/Right arrow keys for the seekbar. I can tab to them w/o issue. However, once I'm there, if I press the desired key, not only does it adjust what it's supposed to adjust, it also tabs over to something else. So, for example, let's say I want to turn the volume down. I tab to the volume bar, press the Down key, and it (a) drops the volume down one level AND (b) it tabs to another button. If I press Up, sure, it goes back to the volume control, and I can either press the Up or Down keys. It'll adjust one level, and then move to another button. This is infuriating me, because I cannot find a way to stop it from doing that!

So, if anyone finds a way to either work the default playback control with the keyboard (which it should do, IMO, because of 508 compliance!) OR can tell me how to disable the natural tabbing functions of the arrow keys, I'd be much appreciative.

Thank you!
TK20109Author
Participating Frequently
April 7, 2008
quote:

Originally posted by: jedijson
...
Now the problem I'm having is that I want to use my arrow keys to adjust the volume and the seekbar. Easy enough--except that I *cannot* disable their natural tabbing function! I want the Up/Down arrow keys for volume control and Left/Right arrow keys for the seekbar. I can tab to them w/o issue. However, once I'm there, if I press the desired key, not only does it adjust what it's supposed to adjust, it also tabs over to something else.
...


So, if I understand, you have tabIndexes set for tabbing between controls and a separate key press handler for handling the Up and Down key presses, right? Why a key press (Up or Down) that is other than a Tab would also trigger a Tab is unexplainable.
...Tim
kglad
Community Expert
Community Expert
April 7, 2008
what about the video button components? do they support the captioning component?
TK20109Author
Participating Frequently
April 7, 2008
Thanks. There must be some *complete* documentation somewhere, but I can't find it. Even a sample project would help tremendously. All the custom controls I have found either don't support captions or require some third-party software (like Captionate).
kglad
Community Expert
Community Expert
April 7, 2008
if you use custom controls, this would be easy. but with the default controls you need to find the object name of the various control buttons. i just don't know how to do that.

once you know the names of the controls, you can tab enable the buttons and set their tab order etc.
kglad
Community Expert
Community Expert
April 4, 2008
are you using the default controls or custom controls?
TK20109Author
Participating Frequently
April 7, 2008
I am trying to use the default FLVPlayback and FLVPlaybackCaptioning controls supplied with CS3. Everything works except keyboard tabbing to the individual controls in the controller. That's a must for Section 508 accessibility.
kglad
Community Expert
Community Expert
April 4, 2008
are you having a problem changing the playback button states?
TK20109Author
Participating Frequently
April 4, 2008
When I package the movie and run the HTML in a browser, I cannot tab to the individual controls in the FLVPlayback component. The similar component in CS2 has the video controls enabled so one could control the video strictly using the keyboard. With the CS3 component, keyboard access to the vontrols is supposed to be included, but I cannot find any references as to how to enable keyboard access. I am also using the FLVPlaybackCaptioning component to close caption the videos. Keyboard access is also required for accessibility. There must be some ActionScript I can code to enable keypress control. Any pointers you can provide are greatly appreciated.