← Previous Next →

Scrawl-canvas v8 - Canvas test 027

Video control and manipulation; filter-based hit zone

To note: Javascript is not running in this browser environment. Our apologies, but this demo has not yet been updated to support progressive enhancement.


To note: All major browsers support playing video using the HTML <video> element. For most uses (eg: background animation in a website banner; advert with an additional Call-To-Action button) this - or a third-party video solution - will be sufficient. We should only resort to displaying video in a <canvas> element when we need to add additional functionality - in this demo we add keyboard-navigable controls and link areas to the video to make it more interesting/accessible.

Each browser implements the HTML <video> element in their own way, with differences in how the video data (eg captions, subtitles) and controls look, and their accessibility. The MDN website has a series of articles on how to create a cross-browser video player. Remember that if we add a video to a canvas for any reason beyond decoration, then we will need to implement much of the functionality described in these articles ourselves:

Further useful accessibility-related links:


Test purpose

Touch test: should work as expected. Known issue: hover effects - such as underlining links - may remain present after touch ends.

Annotated code