BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
spark.components.mediaClasses 

DynamicStreamingVideoItem  - AS3 Flex

(Preview)
Packagespark.components.mediaClasses
Classpublic class DynamicStreamingVideoItem
InheritanceDynamicStreamingVideoItem Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

The DynamicStreamingVideoItem class represents a video stream on the server plus a bitrate for that stream. Use this class to define the values of the streamItems property of the DynamicStreamingVideoSource class. The DynamicStreamingVideoSource class represents a streaming video source and can be used for streaming pre-recorded video or live streaming video.

MXML SyntaxexpandedHide MXML Syntax

The <s:DynamicStreamingVideoItem> tag inherits all of the tag attributes of its superclass and adds the following tag attributes:

  <s:DynamicStreamingVideoItem 
    Properties
    bitrate="0"
    streamName=""
  />
  

View the examples

Related API Elements



Public Properties
 PropertyDefined By
  bitrate : Number
The bit rate for the video stream.
DynamicStreamingVideoItem
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  streamName : String
The stream name on the server.
DynamicStreamingVideoItem
Public Methods
 MethodDefined By
  
Constructor.
DynamicStreamingVideoItem
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
Constructor Detail
DynamicStreamingVideoSourceExample.mxml
<?xml version="1.0"?>
<!-- Simple example to demonstrate the Spark DynamicStreamingVideoSource control -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo">

    <s:Panel title="Spark DynamicStreamingVideoSource Example"
            width="75%" height="75%"
            horizontalCenter="0" verticalCenter="0">
            
        <s:VGroup left="10" right="10" top="10" bottom="10">
        
            <s:Label text="The DynamicStreamingVideoSource object contains multiple stream items. Flash Player automatically play the stream with the highest bit rate."
                color="blue"
                width="75%"/>
    
            <s:VideoPlayer id="myPlayer"
                width="75%" height="75%"
                autoPlay="false">
                <s:source>
                    <s:DynamicStreamingVideoSource id="mySVS"
                        host="rtmp://fmsexamples.adobe.com/vod/">
                        <s:DynamicStreamingVideoItem id="dreamgirl150"
                            streamName="MP4:_PS_dreamgirl_150.f4v"
                            bitrate="150" />
                        <s:DynamicStreamingVideoItem id="dreamgirl500"
                            streamName="MP4:_PS_dreamgirl_500.f4v"
                            bitrate="500" />
                        <s:DynamicStreamingVideoItem id="dreamgirl1000"
                            streamName="MP4:_PS_dreamgirl_1000.f4v"
                            bitrate="1000" />
                    </s:DynamicStreamingVideoSource>
                </s:source>
            </s:VideoPlayer>
        </s:VGroup>
    </s:Panel>
</s:Application>