Web Media API Snapshot 2018

Final Community Group Report

Latest editor's draft:
https://w3c.github.io/webmediaapi/
Test suite:
https://webapitests2018.ctawave.org
Editors:
Jon Piesing (TP Vision Belgium N.V.)
Mark Vickers (Comcast)
Former editor:
David Evans (British Broadcasting Corporation)
Participate:
GitHub w3c/webmediaapi
File a bug
Commit history
Pull requests

Abstract

This specification lists the web APIs to support media web apps that are supported across all four of the most widely used user agent code bases at the time of publication. This specification should be updated at least annually to keep pace with the evolving web platform. We encourage manufacturers to develop products that support the APIs in the most recent version of Web Media API Snapshot. This specification is comprised of references to existing specifications in W3C and other specification groups. The target devices will include any device that runs a modern HTML user agent, including televisions, game machines, set-top boxes, mobile devices and personal computers.

This specification is being developed as part of the CTA WAVE Project.

Status of This Document

This specification was published by the Web Media API Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Final Specification Agreement (FSA) other conditions apply. Learn more about W3C Community and Business Groups.

1. Introduction

This section is non-normative.

Writing portable media web apps across browsers on consumer products (e.g. smart TVs, game machines, set-top boxes) is much more difficult than writing portable media web apps across personal computer browsers. Two main reasons for this are that the browsers on consumer products are often quite out-of-date and that they often have integration issues.

1.1 Out-of-date browsers

While browsers integrated into consumer products are often built from the same major HTML user agent code bases as personal computer browsers, it is not unusual for a consumer product to be using a code base release that is three or more years old, while personal computer browsers use recent code base releases. Furthermore, browsers on consumer products are often infrequently updated, if ever. This results in very different web API support across devices.

This specification is intended to address this problem by listing key specifications used by media web apps that are all supported in common by all of the four major web user agent code bases at the time of publication. The specification will then be used to generate a test suite. The versions of each of the four code bases used to generate the test suite are listed on the front page of the test suite. (See Test suite URL above.)

The specification and test suite enable device manufacturers to specify and verify that their browsers are up-to-date with current web standards at the time of product release. The specification and tests can also be used to specify and verify updates to browsers in the field.

Note that this specification is not defining a subset or profile to be used in place of the full web platform. There are additional specifications that are included in all code bases that are not included in this specification. Furthermore, individual code bases include APIs that are not supported on all other code bases, but are nonetheless widely used. Therefore, this specification and associated tests should only be used as verification of a minimum set of current APIs. There is no suggestion that APIs not included in this specification should be removed from implementations.

It is intended that this specification be updated periodically to reflect adoption of new specifications in the web platform. For example, the specification might be updated once a year for media devices being introduced onto the market in the following year.

1.2 Integration issues

There are many issues during integration of a web user agent with a hardware device that can affect the operation of web APIs. For example, if insufficient memory is allocated for cookies, they won’t function as intended.

To address this issue, this specification includes a list of target values for several APIs which are known to have been impacted by integration issues. There will also be a test suite to verify these values are supported on a device. It is expected that additional integration requirements will be added in future updates.

Note that these values are not mandated by any web standards, but are based on measurement of values supported by popular browsers. Supporting these values should provide better interoperability of web applications with personal computer and mobile browsers. Manufacturers may choose to exceed these values based on their expected application environments.

2. Conformance

As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.

The key words MUST and SHOULD are to be interpreted as described in [RFC2119].

3. Web Media APIs currently supported on all platforms

3.1 Introduction

This section is non-normative.

This section lists the web APIs to support media web apps that are supported across all four of the most widely used user agent code bases at the time of publication. We encourage manufacturers to develop products that support the APIs in the most recent version of this specification.

The approach taken in this draft is only to include specifications that are of particular significance to authors, but not include all the specifications cited by those included specifications. For example, HTTP is required by the HTML spec and is therefore not included here.

3.1.1 Features with limited implementation

Parts of some web specifications are not currently implemented across all user agent code bases and may never be. Consequently, these features will not be included in our tests. Any such features are noted as exceptions under that API.

3.1.2 At-risk features

Some specifications referenced in this section may not have reached Recommendation and, as such, may contain 'at-risk' features. Since the most common reason for features being marked as at-risk is lack of implementations, such features may not be present in some implementations of this specification and will not be tested as part of our tests.

3.2 Client code updates

The W3C Technical Architecture Group released a finding called The evergreen Web which strongly recommends that "Browsers must be regularly updated, especially to fix security and interoperability bugs — ideally with an automatic, secure update mechanism." [EVERGREEN-WEB]

Devices SHOULD regularly update their browsers, preferably automatically.

3.3 Core web specifications

Devices MUST be conforming implementations of the following specifications:

3.4 CSS specifications

Devices MUST be conforming implementations of the following specifications (CSS Snapshot 2017 [CSS-2017]):

3.5 Media specifications

Devices MUST be conforming implementations of the following specifications:

3.6 Graphics specifications

Devices MUST be conforming implementations of the following specifications:

3.7 Font specifications

Devices MUST be conforming implementations of the following specifications:

3.8 Networking specifications

Devices MUST be conforming implementations of the following specifications:

3.9 Security specifications

Devices MUST be conforming implementations of the following specifications:

3.10 Other web specifications

Devices MUST be conforming implementations of the following specifications:

4. User Agent Integration Specifications

4.1 Introduction

This section is non-normative.

This section contains values for integrating a web user agent with a consumer device. The values are based on de facto requirements from browsers on personal computers and mobile devices. Supporting these integration specifications will increase interoperability with media web apps on other devices.

A test suite will evaluate client support for these specifications.

4.2 Cookies

4.3 URLs

5. Web Media APIs proposed to be supported on all platforms

This section is non-normative.

5.1 Introduction

APIs in this section are important for web media delivery, but are not yet implemented in all four code bases. We encourage the following APIs be implemented on all HTML user agents as soon as possible. It is expected that, as implementations become available, some of these specifications may be listed as supported on all platforms in a future version of this specification.

5.2 Media specifications

5.3 Other web specifications

A. References

A.1 Normative references

[2DCONTEXT]
HTML Canvas 2D Context. Rik Cabanier; Jatinder Mann; Jay Munro; Tom Wiltzius; Ian Hickson. W3C. 19 November 2015. W3C Recommendation. URL: https://www.w3.org/TR/2dcontext/
[COMPOSITING]
Compositing and Blending Level 1. Rik Cabanier; Nikos Andronikos. W3C. 13 January 2015. W3C Candidate Recommendation. URL: https://www.w3.org/TR/compositing-1/
[CSP2]
Content Security Policy Level 2. Mike West; Adam Barth; Daniel Veditz. W3C. 15 December 2016. W3C Recommendation. URL: https://www.w3.org/TR/CSP2/
[CSS-CASCADE-3]
CSS Cascading and Inheritance Level 3. Elika Etemad; Tab Atkins Jr.. W3C. 28 August 2018. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-cascade-3/
[CSS-FLEXBOX-1]
CSS Flexible Box Layout Module Level 1. Tab Atkins Jr.; Elika Etemad; Rossen Atanassov; David Baron. W3C. 19 November 2018. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-flexbox-1/
[CSS-FONTS-3]
CSS Fonts Module Level 3. John Daggett; Myles Maxfield; Chris Lilley. W3C. 20 September 2018. W3C Recommendation. URL: https://www.w3.org/TR/css-fonts-3/
[CSS-NAMESPACES-3]
CSS Namespaces Module Level 3. Elika Etemad. W3C. 20 March 2014. W3C Recommendation. URL: https://www.w3.org/TR/css-namespaces-3/
[CSS-STYLE-ATTR]
CSS Style Attributes. Tantek Çelik; Elika Etemad. W3C. 7 November 2013. W3C Recommendation. URL: https://www.w3.org/TR/css-style-attr/
[CSS-SYNTAX-3]
CSS Syntax Module Level 3. Tab Atkins Jr.; Simon Sapin. W3C. 20 February 2014. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-syntax-3/
[CSS-TRANSFORMS-1]
CSS Transforms Module Level 1. Simon Fraser; Dean Jackson; Theresa O'Connor; Dirk Schulze. W3C. 30 November 2017. W3C Working Draft. URL: https://www.w3.org/TR/css-transforms-1/
[CSS-UI-3]
CSS Basic User Interface Module Level 3 (CSS3 UI). Tantek Çelik; Florian Rivoal. W3C. 21 June 2018. W3C Recommendation. URL: https://www.w3.org/TR/css-ui-3/
[CSS-VALUES]
CSS Values and Units Module Level 3. Tab Atkins Jr.; Elika Etemad. W3C. 14 August 2018. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-values-3/
[CSS-WRITING-MODES-3]
CSS Writing Modes Level 3. Elika Etemad; Koji Ishii. W3C. 24 May 2018. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-writing-modes-3/
[CSS2]
Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. Bert Bos; Tantek Çelik; Ian Hickson; Håkon Wium Lie et al. W3C. 7 June 2011. W3C Recommendation. URL: https://www.w3.org/TR/CSS2/
[CSS3-ANIMATIONS]
CSS Animations Level 1. Dean Jackson; David Baron; Tab Atkins Jr.; Brian Birtles. W3C. 11 October 2018. W3C Working Draft. URL: https://www.w3.org/TR/css-animations-1/
[CSS3-BACKGROUND]
CSS Backgrounds and Borders Module Level 3. Bert Bos; Elika Etemad; Brad Kemper. W3C. 17 October 2017. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css-backgrounds-3/
[CSS3-COLOR]
CSS Color Module Level 3. Tantek Çelik; Chris Lilley; David Baron. W3C. 19 June 2018. W3C Recommendation. URL: https://www.w3.org/TR/css-color-3/
[CSS3-CONDITIONAL]
CSS Conditional Rules Module Level 3. David Baron. W3C. 4 April 2013. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css3-conditional/
[CSS3-IMAGES]
CSS Image Values and Replaced Content Module Level 3. Elika Etemad; Tab Atkins Jr.. W3C. 17 April 2012. W3C Candidate Recommendation. URL: https://www.w3.org/TR/css3-images/
[CSS3-MEDIAQUERIES]
Media Queries. Florian Rivoal et al. W3C. 19 June 2012. W3C Recommendation. URL: https://www.w3.org/TR/css3-mediaqueries/
[CSS3-MULTICOL]
CSS Multi-column Layout Module Level 1. Florian Rivoal; Rachel Andrew. W3C. 28 May 2018. W3C Working Draft. URL: https://www.w3.org/TR/css-multicol-1/
[CSS3-TRANSITIONS]
CSS Transitions. David Baron; Dean Jackson; Brian Birtles; David Hyatt. W3C. 11 October 2018. W3C Working Draft. URL: https://www.w3.org/TR/css-transitions-1/
[CSSOM-VIEW]
CSSOM View Module. Simon Pieters. W3C. 17 March 2016. W3C Working Draft. URL: https://www.w3.org/TR/cssom-view-1/
[DOM]
DOM Standard. Anne van Kesteren. WHATWG. Living Standard. URL: https://dom.spec.whatwg.org/
[ECMASCRIPT-6.0]
ECMA-262 6th Edition, The ECMAScript 2015 Language Specification. Allen Wirfs-Brock. Ecma International. June 2015. Standard. URL: http://www.ecma-international.org/ecma-262/6.0/index.html
[ENCRYPTED-MEDIA]
Encrypted Media Extensions. David Dorwin; Jerry Smith; Mark Watson; Adrian Bateman. W3C. 18 September 2017. W3C Recommendation. URL: https://www.w3.org/TR/encrypted-media/
[FETCH]
Fetch Standard. Anne van Kesteren. WHATWG. Living Standard. URL: https://fetch.spec.whatwg.org/
[FILEAPI]
File API. Marijn Kruisselbrink; Arun Ranganathan. W3C. 6 November 2018. W3C Working Draft. URL: https://www.w3.org/TR/FileAPI/
[FULLSCREEN]
Fullscreen API Standard. Philip Jägenstedt. WHATWG. Living Standard. URL: https://fullscreen.spec.whatwg.org/
[GIF]
Graphics Interchange Format. CompuServe Incorporated. 31 July 1990. URL: https://www.w3.org/Graphics/GIF/spec-gif89a.txt
[HTML]
HTML Standard. Anne van Kesteren; Domenic Denicola; Ian Hickson; Philip Jägenstedt; Simon Pieters. WHATWG. Living Standard. URL: https://html.spec.whatwg.org/multipage/
[INDEXEDDB]
Indexed Database API. Nikunj Mehta; Jonas Sicking; Eliot Graff; Andrei Popescu; Jeremy Orlow; Joshua Bell. W3C. 8 January 2015. W3C Recommendation. URL: https://www.w3.org/TR/IndexedDB/
[JPEG]
JPEG File Interchange Format. Eric Hamilton. C-Cube Microsystems. Milpitas, CA, USA. September 1992. URL: https://www.w3.org/Graphics/JPEG/jfif3.pdf
[MEDIA-SOURCE]
Media Source Extensions™. Matthew Wolenetz; Jerry Smith; Mark Watson; Aaron Colwell; Adrian Bateman. W3C. 17 November 2016. W3C Recommendation. URL: https://www.w3.org/TR/media-source/
[MEDIACAPTURE-STREAMS]
Media Capture and Streams. Daniel Burnett; Adam Bergkvist; Cullen Jennings; Anant Narayanan; Bernard Aboba. W3C. 3 October 2017. W3C Candidate Recommendation. URL: https://www.w3.org/TR/mediacapture-streams/
[NOTIFICATIONS]
Notifications API Standard. Anne van Kesteren. WHATWG. Living Standard. URL: https://notifications.spec.whatwg.org/
[OPEN-FONT-FORMAT]
Information technology — Coding of audio-visual objects — Part 22: Open Font Format. International Organization for Standardization. URL: http://standards.iso.org/ittf/PubliclyAvailableStandards/c052136_ISO_IEC_14496-22_2009%28E%29.zip
[PAGE-VISIBILITY-2]
Page Visibility Level 2. Ilya Grigorik; Arvind Jain; Jatinder Mann. W3C. 17 October 2017. W3C Proposed Recommendation. URL: https://www.w3.org/TR/page-visibility-2/
[PNG]
Portable Network Graphics (PNG) Specification (Second Edition). Tom Lane. W3C. 10 November 2003. W3C Recommendation. URL: https://www.w3.org/TR/PNG/
[RFC2119]
Key words for use in RFCs to Indicate Requirement Levels. S. Bradner. IETF. March 1997. Best Current Practice. URL: https://tools.ietf.org/html/rfc2119
[SELECT]
Selectors Level 3. Tantek Çelik; Elika Etemad; Daniel Glazman; Ian Hickson; Peter Linss; John Williams. W3C. 6 November 2018. W3C Recommendation. URL: https://www.w3.org/TR/selectors-3/
[SERVICE-WORKERS-1]
Service Workers 1. Alex Russell; Jungkee Song; Jake Archibald; Marijn Kruisselbrink. W3C. 2 November 2017. W3C Working Draft. URL: https://www.w3.org/TR/service-workers-1/
[SVG11]
Scalable Vector Graphics (SVG) 1.1 (Second Edition). Erik Dahlström; Patrick Dengler; Anthony Grasso; Chris Lilley; Cameron McCormack; Doug Schepers; Jonathan Watt; Jon Ferraiolo; Jun Fujisawa; Dean Jackson et al. W3C. 16 August 2011. W3C Recommendation. URL: https://www.w3.org/TR/SVG11/
[UIEVENTS]
UI Events. Gary Kacmarcik; Travis Leithead; Doug Schepers. W3C. 8 November 2018. W3C Working Draft. URL: https://www.w3.org/TR/uievents/
[WEBAUDIO]
Web Audio API. Paul Adenot; Raymond Toy. W3C. 18 September 2018. W3C Candidate Recommendation. URL: https://www.w3.org/TR/webaudio/
[WEBCRYPTOAPI]
Web Cryptography API. Mark Watson. W3C. 26 January 2017. W3C Recommendation. URL: https://www.w3.org/TR/WebCryptoAPI/
[WEBGL-103]
WebGL Specification. Dean Jackson. Khronos. 27 October 2014. URL: https://www.khronos.org/registry/webgl/specs/1.0.3/
[WOFF]
WOFF File Format 1.0. Jonathan Kew; Tal Leming; Erik van Blokland. W3C. 13 December 2012. W3C Recommendation. URL: https://www.w3.org/TR/WOFF/
[XHR]
XMLHttpRequest Standard. Anne van Kesteren. WHATWG. Living Standard. URL: https://xhr.spec.whatwg.org/

A.2 Informative references

[APPMANIFEST]
Web App Manifest. Marcos Caceres; Kenneth Christiansen; Mounir Lamouri; Anssi Kostiainen; Rob Dolin; Matt Giuca. W3C. 13 November 2018. W3C Working Draft. URL: https://www.w3.org/TR/appmanifest/
[CSS-2017]
CSS Snapshot 2017. Tab Atkins Jr.; Elika Etemad; Florian Rivoal. W3C. 31 January 2017. W3C Note. URL: https://www.w3.org/TR/css-2017/
[EVERGREEN-WEB]
The evergreen Web. Hadley Beeman. W3C. 9 February 2017. TAG Finding. URL: https://www.w3.org/2001/tag/doc/evergreen-web/
[INBANDTRACKS]
Sourcing In-band Media Resource Tracks from Media Containers into HTML. Silvia Pfeiffer; Bob Lund. W3C. 26 April 2015. Unofficial Draft. URL: https://dev.w3.org/html5/html-sourcing-inband-tracks/
[MEDIA-FRAGS]
Media Fragments URI 1.0 (basic). Raphaël Troncy; Erik Mannens; Silvia Pfeiffer; Davy Van Deursen. W3C. 25 September 2012. W3C Recommendation. URL: https://www.w3.org/TR/media-frags/
[MEDIASESSION]
Media Session. WICG. Living Standard. URL: https://wicg.github.io/mediasession/