패키지 | spark.components.mediaClasses |
클래스 | public class DynamicStreamingVideoSource |
상속 | DynamicStreamingVideoSource Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
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.
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.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoItem
속성 | 정의 주체 | ||
---|---|---|---|
constructor : 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 | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | 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 | 속성 |
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.
<?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:17 PM Z