Paket | org.osmf.media |
Klass | public class MediaFactoryItem |
Arv | MediaFactoryItem Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
MediaFactoryItem objects are exposed by plugins (on the PluginInfo class), and used by the framework to create the MediaElement(s) specified by the plugin.
Relaterade API-element
Publika egenskaper
Egenskap | Definieras med | ||
---|---|---|---|
canHandleResourceFunction : Function [skrivskyddad]
Function which is used to determine whether this MediaFactoryItem can handle
a particular resource. | MediaFactoryItem | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
id : String [skrivskyddad]
An identifier that represents this MediaFactoryItem. | MediaFactoryItem | ||
mediaElementCreationFunction : Function [skrivskyddad]
Function which creates a new instance of the desired MediaElement. | MediaFactoryItem | ||
type : String [skrivskyddad]
The MediaFactoryItemType for this MediaFactoryItem. | MediaFactoryItem |
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
MediaFactoryItem(id:String, canHandleResourceFunction:Function, mediaElementCreationFunction:Function, type:String = null)
Constructor. | MediaFactoryItem | ||
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 | ||
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
canHandleResourceFunction | egenskap |
canHandleResourceFunction:Function
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Function which is used to determine whether this MediaFactoryItem can handle a particular resource. The function must take a single parameter of type MediaResourceBase, and return a Boolean.
Implementering
public function get canHandleResourceFunction():Function
id | egenskap |
mediaElementCreationFunction | egenskap |
mediaElementCreationFunction:Function
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Function which creates a new instance of the desired MediaElement. The function must take no params, and return a MediaElement.
Implementering
public function get mediaElementCreationFunction():Function
type | egenskap |
Konstruktordetaljer
MediaFactoryItem | () | Konstruktor |
public function MediaFactoryItem(id:String, canHandleResourceFunction:Function, mediaElementCreationFunction:Function, type:String = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
Parametrarid:String — An identifier that represents this MediaFactoryItem. Identifiers should reflect
the plugin makers name, and the specific name of the element it generates. The convention
is to use the package namespace scheme. Two examples:
com.example.MyAdPlugin
com.example.MyAnalyticsPlugin
Note: org.osmf should be avoided since the MediaFactory gives precedence to
non-osmf plugins.
| |
canHandleResourceFunction:Function — Function which is used to determine
whether this MediaFactoryItem can handle a particular resource. The
function must take a single parameter of type MediaResourceBase, and
return a Boolean.
| |
mediaElementCreationFunction:Function — Function which creates a new instance
of the desired MediaElement. The function must take no params, and
return a MediaElement.
| |
type:String (default = null ) — The type of this MediaFactoryItem. If null, the default is
MediaFactoryItemType.STANDARD .
|
Utlöser
ArgumentError — If any argument (except type) is null.
|
Tue Jun 12 2018, 01:40 PM Z