| 패키지 | 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:17 PM Z
MXML 구문 표시