套件 | spark.components.mediaClasses |
類別 | public class DynamicStreamingVideoItem |
繼承 | DynamicStreamingVideoItem Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
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 語法隱藏 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 元素
spark.components.VideoPlayer
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
bitrate : Number
The bit rate for the video stream. | DynamicStreamingVideoItem | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
streamName : String
The stream name on the server. | DynamicStreamingVideoItem |
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructor. | DynamicStreamingVideoItem | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
bitrate | 屬性 |
streamName | 屬性 |
streamName:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The stream name on the server.
Use the host
property of the DynamicStreamingVideoSource class
to specify the URI of the server.
實作
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 |
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>
Tue Jun 12 2018, 03:47 PM Z