| Package | com.devnet.osmf.application |
| Class | public class Configuration |
| Inheritance | Configuration flash.events.EventDispatcher |
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.0.0 |
Example: This example shows the custom markup format the Configuration class uses.
<media_playlist >
<media layout="serial" width="768" height="428">
<source>http://mediapm.edgesuite.net/osmf/content/test/manifest-files/dynamic_Streaming.f4m </source>
</media>
</media_playlist>
Each media node must include one of the following layout attribute values: serial or parallel.
Each media node can optionally include the following attributes: duration, width, height, x, y, scaleMode, horizontalAlign, verticalAlign.
See also
| Property | Defined By | ||
|---|---|---|---|
| playlistAsXML : XML [read-only]
The playlist is the XML configuration markup
loaded from ActionScript or an external resource. | Configuration | ||
| Method | Defined By | ||
|---|---|---|---|
Configuration(factory:DefaultMediaFactory)
Pass a reference to the DefaultMediaFactory while
instantiating the Configuration class to allow for
media level element configuration. | Configuration | ||
getPlaylist(fromXML:XML = null):*
Returns the root element of the config markup formatted as an OSMF element object. | Configuration | ||
load(configUrl:String):void
Loads a config file from an external source. | Configuration | ||
| Method | Defined By | ||
|---|---|---|---|
onConfigError(event:IOErrorEvent):void | Configuration | ||
onConfigLoaded(event:Event):void | Configuration | ||
| playlistAsXML | property |
playlistAsXML:XML [read-only] The playlist is the XML configuration markup loaded from ActionScript or an external resource.
public function get playlistAsXML():XML| Configuration | () | Constructor |
public function Configuration(factory:DefaultMediaFactory)Pass a reference to the DefaultMediaFactory while instantiating the Configuration class to allow for media level element configuration.
Parametersfactory:DefaultMediaFactory — The DefaultMediaFactory used by the MediaDisplay class.
|
| getPlaylist | () | method |
public function getPlaylist(fromXML:XML = null):*Returns the root element of the config markup formatted as an OSMF element object. Call this method without parameters to retrieve the configuration loaded from an external source, or pass in XML markup created at runtime.
Parameters
fromXML:XML (default = null) |
* — Parallel or Serial element.
|
| load | () | method |
public function load(configUrl:String):voidLoads a config file from an external source.
Parameters
configUrl:String — String representing the URL of the config XML file.
|
| onConfigError | () | method |
protected function onConfigError(event:IOErrorEvent):voidParameters
event:IOErrorEvent |
| onConfigLoaded | () | method |
protected function onConfigLoaded(event:Event):voidParameters
event:Event |
| complete | Event |
flash.events.Event| ioError | Event |
flash.events.IOErrorEvent