適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
spark.components.mediaClasses 

DynamicStreamingVideoSource  - AS3 Flex

套件spark.components.mediaClasses
類別public class DynamicStreamingVideoSource
繼承DynamicStreamingVideoSource Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The DynamicStreamingVideoSource class represents a streaming video source and can be used for streaming pre-recorded video or live streaming video. You use this class to define a video stream for the VideoPlayer and VideoDisplay controls.

This class supports a single stream or multiple streams associated with different bitrates. The VideoPlayer and VideoDisplay classes can take a DynamicStreamingVideoSource instance as its source property.

MXML 語法expanded隱藏 MXML 語法

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

  <s:DynamicStreamingVideoSource 
    Properties
    host=""
    initialIndex="0"
    streamType="any"
  />
  

預設 MXML 屬性streamItems

檢視範例

相關 API 元素



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  host : Object
The URI of the location of the video server.
DynamicStreamingVideoSource
  initialIndex : int
The preferred starting index.
DynamicStreamingVideoSource
  streamItems : Vector.<DynamicStreamingVideoItem>
The metadata info object with properties describing the FLB file.
DynamicStreamingVideoSource
  streamType : String
The type of stream we are trying to connect to: any, live, or recorded.
DynamicStreamingVideoSource
公用方法
 方法定義自
  
Constructor.
DynamicStreamingVideoSource
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

host

屬性
host:Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The URI of the location of the video server. While this property is of type Object, pass the URI as a String.

Use the streamName property of the DynamicStreamingVideoItem class to specify stream name on the server.



實作
    public function get host():Object
    public function set host(value:Object):void

相關 API 元素

initialIndex

屬性 
initialIndex:int

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The preferred starting index. This corresponds to the stream item that should be attempted first.



實作
    public function get initialIndex():int
    public function set initialIndex(value:int):void

streamItems

屬性 
streamItems:Vector.<DynamicStreamingVideoItem>

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The metadata info object with properties describing the FLB file.



實作
    public function get streamItems():Vector.<DynamicStreamingVideoItem>
    public function set streamItems(value:Vector.<DynamicStreamingVideoItem>):void

streamType

屬性 
streamType:String

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

The type of stream we are trying to connect to: any, live, or recorded.

If the streamType is any, then we will attempt to connect to a live stream first. If no live stream is found, we will attempt to connect to a recorded stream. If no recorded stream is found, then a live stream will be created.

預設值為 any。



實作
    public function get streamType():String
    public function set streamType(value:String):void

相關 API 元素

建構函式詳細資料

DynamicStreamingVideoSource

()建構函式
public function DynamicStreamingVideoSource()

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 1.5

Constructor.

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 類別就會以英文顯示。