<media-source>

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

Usage information

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

Rendering expectations

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

Content model

EMPTY

Empty

Attributes

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.

@format (link-relationship attributes)
Specifies the format of the resource that is referenced. See The format attribute for detailed information on supported values and processing implications.
@href (link-relationship attributes)
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.
@keyref
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.

For HDITA, the equivalent of @keyref is @data-keyref

@scope (link-relationship attributes)
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>.