| 包 | spark.components.mediaClasses |
| 类 | public class DynamicStreamingVideoItem |
| 继承 | DynamicStreamingVideoItem Object |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 4 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
streamItems 属性的值。DynamicStreamingVideoSource 类表示流视频源,可以用于预先录制的流视频或实时流视频。
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
视频流的比特率。 | DynamicStreamingVideoItem | ||
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| streamName : String
服务器上的流名称。 | DynamicStreamingVideoItem | ||
公共方法
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
构造函数。 | DynamicStreamingVideoItem | ||
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
属性详细信息
bitrate | 属性 |
streamName | 属性 |
构造函数详细信息
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>
Tue Jun 12 2018, 11:04 AM Z
显示 MXML 语法