Package | org.osmf.media |
Class | public class URLResource |
Inheritance | URLResource MediaResourceBase Object |
Subclasses | StreamingURLResource |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Properties
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
mediaType : String
The MediaType, if any, of this resource. | MediaResourceBase | ||
metadataNamespaceURLs : Vector.<String> [read-only]
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 | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | ||
url : String [read-only]
The URL of the resource. | URLResource |
Public Methods
Method | Defined By | ||
---|---|---|---|
URLResource(url:String)
Constructor. | URLResource | ||
Adds a metadata value to this resource. | MediaResourceBase | ||
Retrieves a metadata value from this resource. | MediaResourceBase | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a metadata value from this resource. | MediaResourceBase | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Property Detail
url | property |
Constructor Detail
URLResource | () | Constructor |
Examples How to use this example
URLResourceExample.as
package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import org.osmf.elements.VideoElement; import org.osmf.media.MediaPlayerSprite; import org.osmf.media.URLResource; public class URLResourceExample extends Sprite { public function URLResourceExample() { super(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite(); var videoElement:VideoElement = new VideoElement(); videoElement.resource = new URLResource("rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD_sounas_640_500_short"); addChild(mediaPlayerSprite); mediaPlayerSprite.media = videoElement; } } }
Mon Nov 28 2011, 06:48 AM -08:00