套件 | org.osmf.media |
類別 | public class MediaResourceBase |
繼承 | MediaResourceBase Object |
子類別 | PluginInfoResource, URLResource |
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | 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.
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
mediaType : String
The MediaType, if any, of this resource. | MediaResourceBase | ||
metadataNamespaceURLs : Vector.<String> [唯讀]
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 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructor. | MediaResourceBase | ||
Adds a metadata value to this resource. | MediaResourceBase | ||
Retrieves a metadata value from this resource. | MediaResourceBase | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Removes a metadata value from this resource. | MediaResourceBase | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
mediaType | 屬性 |
metadataNamespaceURLs | 屬性 |
mimeType | 屬性 |
建構函式詳細資料
MediaResourceBase | () | 建構函式 |
public function MediaResourceBase()
Constructor.
方法詳細資訊
addMetadataValue | () | 方法 |
public function addMetadataValue(namespaceURL:String, value:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Adds a metadata value to this resource.
參數
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 | () | 方法 |
public function getMetadataValue(namespaceURL:String):Object
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Retrieves a metadata value from this resource.
參數
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 | () | 方法 |
public function removeMetadataValue(namespaceURL:String):Object
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Removes a metadata value from this resource.
參數
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, 03:47 PM Z