Overview
The Media
class represents a media resource.
It contains information about the media, such
as its source, resolution, and metadata.
See Also:
MediaError
Profile: common
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | duration | Duration |
The duration of the source media |
||||
public-read | height | Number |
The height resolution of the source media may be zero if the media has no height, such as the case with audio, or if the height is currently unknown, which may occur with streaming media. |
||||
public-read | metadata | Metadata[] |
a sequence of |
||||
public | onError | function(:MediaError):Void |
The function to be invoked when an error occurs on this The function to be invoked when an error occurs on this
See Also:
Profile: common |
||||
public | source | String |
Defines the Defines the Profile: common |
||||
public-read | tracks | Track[] |
The tracks contained in this media object A media object can contain several, parallel tracks, such as a video track with several audio and subtitle tracks |
||||
public-read | width | Number |
The width resolution of the source media may be zero if the media has no width, such as the case with audio, or if the height is currently unknown, which may occur with streaming media. |
Inherited Variables
Function Summary
- public getMetadata(key: java.lang.String) : java.lang.Object
-
Returns the metadata stored in the source media for the specified key
Returns the metadata stored in the source media for the specified key
See Also:
metadata-
Parameters
- key
- the name of the key, such as "author"
-
Returns
- Object
-
the Object for the specided key.
The class of this is often a
String
but could be another class depending on the media type and the key value. Note that metadata may not be available for all media types.
Profile: common