| 包 | spark.components.mediaClasses |
| 类 | public class DynamicStreamingVideoSource |
| 继承 | DynamicStreamingVideoSource Object |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 4 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
此类支持一个流或与不同比特率关联的多个流。VideoPlayer 和 VideoDisplay 类可以将 DynamicStreamingVideoSource 实例视为其 source 属性。
隐藏 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 元素
spark.components.VideoPlayer
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoItem
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoItem
公共属性
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| host : Object
视频服务器位置的 URI。 | DynamicStreamingVideoSource | ||
| initialIndex : int
首选起始索引。 | DynamicStreamingVideoSource | ||
| streamItems : Vector.<DynamicStreamingVideoItem>
具有描述 FLB 文件的属性的元数据信息对象。 | DynamicStreamingVideoSource | ||
| streamType : String
尝试连接的流类型:任何流、实时流或录制流。 | DynamicStreamingVideoSource | ||
公共方法
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
构造函数。 | DynamicStreamingVideoSource | ||
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
属性详细信息
host | 属性 |
initialIndex | 属性 |
streamItems | 属性 |
streamItems:Vector.<DynamicStreamingVideoItem>| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 4 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
具有描述 FLB 文件的属性的元数据信息对象。
实现
public function get streamItems():Vector.<DynamicStreamingVideoItem> public function set streamItems(value:Vector.<DynamicStreamingVideoItem>):voidstreamType | 属性 |
构造函数详细信息
DynamicStreamingVideoSource | () | 构造函数 |
public function DynamicStreamingVideoSource()| 语言版本: | 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>
Tue Jun 12 2018, 11:04 AM Z
显示 MXML 语法