The <media> element defines a media object containing: perceptual media content; imperative code content; declarative code content; UTC content; or global variables for the application. The object type is defined by the type attribute or is inferred by the file extension used in the src attribute.
Four special types are defined:
Excepting <media> elements of “application/x-ncl-NCL” and “application/x-ncl-NCLua” types, a <media> element may refer to another <media> element of the same document or to an imported <media> element. All attributes and child elements defined by the referred element are inherited by the referring element, except the focusIndex attribute. All attributes and child elements defined by the referring element must be ignored by the NCL player, except the following attributes and child elements:
The referred element and the element that refers to it shall be considered the same, regarding its data specification. They shall also be considered the same regarding their presentation, if the instance attribute receives the “instSame” or “gradSame” values.
The following semantics must be respected when reusing a <media> element. Assume the set of <media> elements composed of the referred <media> element and all the referring <media> elements.
Name | Value | Description |
---|---|---|
id | It may receive any string value that begins with a letter or an underscore and that only contains letters, digits, “.”, and “_”. | The id attribute uniquely identifies the element within a document. |
src | The following are valid values:
For src attribute whose value identifies the “sbtvd-ts”, “isdb-ts”, or “ts” scheme, the “program_number.component_tag”, can be substituted by the following reserved words:
| The src attribute is the locator for the media object content. |
type | String. It shall follow MIME Media Types format. Four special types are defined: “application/x-ncl-NCL” (or “application/x-ginga-NCL”), “application/x-ncl-NCLua” (or “application/x-ginga-NCLua”), “application/x-ncl-settings” (or “application/x-ginga-settings”), and “application/x-ncl-time” (or “application/x-ginga-time”). | The type attribute shall follow MIME Media Types format (or, more simply, mimetypes). A mimetype is a string that defines the class of media (audio, video, image, text, application) and a media encoding type (such as jpeg, mpeg, etc.). Mimetypes may be registered or informal. Registered mimetypes are controlled by the IANA. Informal mimetypes are not registered with IANA, but are defined by common agreement; they usually have an “x-” before the media type name. |
refer | IDREF or the string “alias#id” where “id” is an IDREF value. | The refer attribute refers to a <media> element id that will be reused. An element that refers to another element cannot be reused; that is, its id cannot be the value of any refer attribute. The referred element must be a <media> element. The referred element and the element that refers to it is considered the same regarding their data specification. If the referred media object is defined within an imported document D, the refer attribute value must have the format “alias#id”, where “alias” is the value of the alias attribute associated with the imported D document. |
instance | “new”, “instSame”, or “gradSame”. | Specifies the reuse type. The “new” value defines a new presentation instance but inheriting the specification of the referred <media> element. The “instSame” value defines a same presentation instance that is immediately started as soon as the referred <media> element or any other <media> elements referring to it with instance attribute equal to “instSame” is started, or if a start instruction is applied on it. The “gradSame” value defines a same presentation instance that is started as soon an start instruction is applied on it, coming from a link, etc. |
descriptor | IDREF. | The descriptor attribute refers to a <descriptor> element. |