WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: background video pause/play?

for

From: Patrick H. Lauke
Date: Aug 15, 2017 7:20AM


On 15/08/2017 14:06, Joseph Sherman wrote:
> Does background video that loops more than 5 seconds also need pause and play buttons? For example the video here:
> http://www.citytech.cuny.edu/academics/
>
> Is there an easy way to add pause to background video?

Define "easy"...it all depends on how the video itself has been
incorporated. In the example above, it's an HTML5 <video> element, and
the pause control that's already present there on the left-hand side
(which should really be keyboard-focusable!) fires the pause() method on
the <video> element programmatically.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke