Paket | org.osmf.media |
Klass | public class MediaResourceBase |
Arv | MediaResourceBase Object |
Underklasser | PluginInfoResource, URLResource |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Different MediaElement instances can "handle" (i.e. process and present) different resource types (e.g. a URL vs. an array of streams), or even different variations of the same resource type (e.g. a URL with the ".jpg" extension vs. a URL with a ".mp3" extension).
A MediaResourceBase can also have an arbitrary set of descriptive metadata. Metadata is typically used to further qualify the resource so that each MediaElement can determine whether (and how) to present and process the resource.
Publika egenskaper
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
mediaType : String
The MediaType, if any, of this resource. | MediaResourceBase | ||
metadataNamespaceURLs : Vector.<String> [skrivskyddad]
A Vector containing the namespace URLs for all Metadata
objects within this resource. | MediaResourceBase | ||
mimeType : String
The MIME type, if any, of this resource. | MediaResourceBase |
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
Constructor. | MediaResourceBase | ||
Adds a metadata value to this resource. | MediaResourceBase | ||
Retrieves a metadata value from this resource. | MediaResourceBase | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Removes a metadata value from this resource. | MediaResourceBase | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
Egenskapsdetaljer
mediaType | egenskap |
metadataNamespaceURLs | egenskap |
mimeType | egenskap |
Konstruktordetaljer
MediaResourceBase | () | Konstruktor |
public function MediaResourceBase()
Constructor.
Metoddetaljer
addMetadataValue | () | metod |
public function addMetadataValue(namespaceURL:String, value:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Adds a metadata value to this resource.
Parametrar
namespaceURL:String — A URL with which this metadata is associated,
and with which it can be retrieved. If there is metadata that
is already associated with this URL, then it will be overwritten.
| |
value:Object — The metadata value. It is recommended that this be a
strongly-typed class, rather than an untyped Object.
|
getMetadataValue | () | metod |
public function getMetadataValue(namespaceURL:String):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Retrieves a metadata value from this resource.
Parametrar
namespaceURL:String — The URL with which the metadata is associated.
|
Object — The retrieved metadata value, null if there is no metadata value
associated with the specified namespace URL.
|
removeMetadataValue | () | metod |
public function removeMetadataValue(namespaceURL:String):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes a metadata value from this resource.
Parametrar
namespaceURL:String — The URL with which the metadata value is associated.
|
Object — The removed metadata value, null if there is no metadata value
associated with the specified namespace URL.
|
Tue Jun 12 2018, 01:40 PM Z