Day 89 of 100DaysOfSpec, param and video elements
I am reading and taking notes on the HTML specifications for 100 days as part of #The100DayProject. Read the initial intent/backstory. I am a Microsoft employee but all opinions, comments, etc on this site are my own. I do not speak on behalf of my employer, and thus no comments should be taken as representative of Microsoft’s official opinion of the spec. Subsections not listed below were read without comment.
Currently reading in 4.7 Embedded content
UAs = user agents = browsers, etc.
4.7.5 The param element
param element defines parameters for plugins invoked by object elements. It does not represent anything on its own.”
- Is a child of an
objectelement, before flow content.
- Both possible attributes (
value) need to be applied. Either one can have any value! When this condition is met, the
paramdefines a parameter for its parent
- You can have any number of
paramelements as children of
4.7.6 The video element
video element is used for playing videos or movies, and audio files with captions.”
Attributes besides globals:
crossorigin: how it handles requests from other origins
poster: frame to show before the video plays. Pretty neat. Value is a URL.
preload: “hints how much buffering the media resource will likely need”
autoplay: whether the video can be played on page load. The word used in the spec is “hint”. Which means that the UA has flexibility in whether or not to honor the autoplay…
mediagroup“groups media elements together with an implicit MediaController”
muted: also a boolean
controls: show UA controls
- Only one ARIA role available:
- Fallback content is allowed for old browsers. Specifically not meant to fix accessibility (a11y) problems.
Strategies for a11y
- Captions embedded in the video or in external files using the
- Sign-language tracks embedded or provided in additional synced-up
- Audio descriptions, embedded in video, or in an
audioelement “slaved” to the video element. And here we have bias baked into technical jargon.
- Text in a WebVTT file referenced by a
trackelement, “synthesized” into speech by the UA. This tech can also provide chapter titles.
- Can also link to or display text transcripts close to the