| Pakiet | spark.components.mediaClasses |
| Klasa | public class DynamicStreamingVideoItem |
| Dziedziczenie | DynamicStreamingVideoItem Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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.
Składnia MXML
Ukryj składnię MXMLThe <s:DynamicStreamingVideoItem> tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<s:DynamicStreamingVideoItem
Properties
bitrate="0"
streamName=""
/>
Powiązane elementy interfejsu API
spark.components.VideoPlayer
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
Właściwości publiczne
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| bitrate : Number
The bit rate for the video stream. | DynamicStreamingVideoItem | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| streamName : String
The stream name on the server. | DynamicStreamingVideoItem | ||
Metody publiczne
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | DynamicStreamingVideoItem | ||
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
Szczegół właściwości
bitrate | właściwość |
streamName | właściwość |
streamName:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get streamName():String public function set streamName(value:String):voidPowiązane elementy interfejsu API
Konstruktor Szczegół
DynamicStreamingVideoItem | () | Konstruktor |
public function DynamicStreamingVideoItem()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructor.
Przykłady Sposób korzystania z tego przykładu
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, 12:06 PM Z
Pokaż składnię MXML