用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
spark.components.mediaClasses 

DynamicStreamingVideoItem  - AS3 Flex

spark.components.mediaClasses
public class DynamicStreamingVideoItem
继承DynamicStreamingVideoItem Inheritance Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

DynamicStreamingVideoItem 类表示服务器上的一个视频流加上该流的一个比特率。使用此类可以定义 DynamicStreamingVideoSource 类的 streamItems 属性的值。DynamicStreamingVideoSource 类表示流视频源,可以用于预先录制的流视频或实时流视频。

MXML 语法expanded隐藏 MXML 语法

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=""
  />
  

查看示例

相关 API 元素



公共属性
 属性由以下参数定义
  bitrate : Number
视频流的比特率。
DynamicStreamingVideoItem
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  streamName : String
服务器上的流名称。
DynamicStreamingVideoItem
公共方法
 方法由以下参数定义
  
构造函数。
DynamicStreamingVideoItem
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
属性详细信息

bitrate

属性
bitrate:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

视频流的比特率。

默认值为 0。



实现
    public function get bitrate():Number
    public function set bitrate(value:Number):void

streamName

属性 
streamName:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

服务器上的流名称。使用 DynamicStreamingVideoSource 类的 host 属性可以指定服务器的 URI。



实现
    public function get streamName():String
    public function set streamName(value:String):void

相关 API 元素

构造函数详细信息

DynamicStreamingVideoItem

()构造函数
public function DynamicStreamingVideoItem()

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

构造函数。

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>




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。