<media-source>

The media source specifies the location of an audio or video resource.

The media source is modeled on the <source> element used in HTML5 media elements.

When multiple <media-source> elements are present, the user agent evaluates them in document order and selects the first resource that can be played.

EMPTY

Empty

The following attributes are available on this element: universal attributes, @format, @href, @keyref, and @scope.

For this element, the @href attribute specifies the URI of the track resource.

The following attributes are available on this element: universal attributes and the attributes defined below.

Specifies the format of the resource that is referenced. See The format attribute for detailed information on supported values and processing implications.
Specifies a reference to a resource. See The href attribute for detailed information on supported values and processing implications.
For this element, the @href attribute specifies the URI of the track resource.
Specifies a key name that acts as a redirectable reference based on a key definition within a map. See The keyref attribute for information on using this attribute.
Specifies the closeness of the relationship between the current document and the referenced resource. The following values are valid: local, peer, external, and -dita-use-conref-target.

See The scope attribute for detailed information on supported values and processing implications.

Example

This section is non-normative.

See <audio> and <video>.