Package | org.osmf.net |
Class | public class DynamicStreamingResource |
Inheritance | DynamicStreamingResource ![]() ![]() ![]() ![]() |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
This class provides an object representation of a dynamic streaming resource without any knowledge or assumption of any file format, such as SMIL, Media RSS, F4M, etc.
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | clipEndTime : Number
Optional end time of the streaming resource. | StreamingURLResource | |
![]() | clipStartTime : Number
Optional start time of the streaming resource. | StreamingURLResource | |
![]() | connectionArguments : Vector.<Object>
Optional set of arguments that will be supplied when making a
connection to the source of the stream. | StreamingURLResource | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
![]() | drmContentData : ByteArray
Content metadata for DRM-encrypted content. | StreamingURLResource | |
![]() | 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 | |
![]() | urlIncludesFMSApplicationInstance : Boolean
Indicates, for RTMP streaming URLs, whether the URL includes the FMS
application instance or not. | StreamingURLResource |
Public Methods
Method | Defined By | ||
---|---|---|---|
![]() |
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 | |
![]() |
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
Constructor Detail
Examples How to use this example
DynamicStreamingResourceExample.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.net.DynamicStreamingItem; import org.osmf.net.DynamicStreamingResource; public class DynamicStreamingResourceExample extends Sprite { public function DynamicStreamingResourceExample() { super(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite(); var videoElement:VideoElement = new VideoElement(); var dynResource:DynamicStreamingResource = new DynamicStreamingResource("rtmp://cp67126.edgefcs.net/ondemand"); dynResource.streamItems = Vector.<DynamicStreamingItem>( [ new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_768x428_24.0fps_408kbps.mp4", 408, 768, 428) , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_768x428_24.0fps_608kbps.mp4", 608, 768, 428) , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1024x522_24.0fps_908kbps.mp4", 908, 1024, 522) , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1024x522_24.0fps_1308kbps.mp4", 1308, 1024, 522) , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1280x720_24.0fps_1708kbps.mp4", 1708, 1280, 720) ]); videoElement.resource = dynResource; addChild(mediaPlayerSprite); mediaPlayerSprite.media = videoElement; } } }
Thu Dec 6 2018, 01:12 PM -08:00