ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
spark.components.mediaClasses 

DynamicStreamingVideoSource  - AS3 Flex

Pakietspark.components.mediaClasses
Klasapublic class DynamicStreamingVideoSource
DziedziczenieDynamicStreamingVideoSource Inheritance Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: Flash Player 10, AIR 1.5

The DynamicStreamingVideoSource class represents a streaming video source and can be used for streaming pre-recorded video or live streaming video. You use this class to define a video stream for the VideoPlayer and VideoDisplay controls.

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.

Składnia MXMLexpandedUkryj składnię 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"
  />
  

Domyślna właściwość MXMLstreamItems

Wyświetl przykłady

Powiązane elementy interfejsu API



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
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
Metody publiczne
 MetodaZdefiniowane przez
  
Constructor.
DynamicStreamingVideoSource
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
Szczegół właściwości

host

właściwość
host:Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: 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.



Implementacja
    public function get host():Object
    public function set host(value:Object):void

Powiązane elementy interfejsu API

initialIndex

właściwość 
initialIndex:int

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: Flash Player 10, AIR 1.5

The preferred starting index. This corresponds to the stream item that should be attempted first.



Implementacja
    public function get initialIndex():int
    public function set initialIndex(value:int):void

streamItems

właściwość 
streamItems:Vector.<DynamicStreamingVideoItem>

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: Flash Player 10, AIR 1.5

The metadata info object with properties describing the FLB file.



Implementacja
    public function get streamItems():Vector.<DynamicStreamingVideoItem>
    public function set streamItems(value:Vector.<DynamicStreamingVideoItem>):void

streamType

właściwość 
streamType:String

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: 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.

Wartością domyślną jest any.



Implementacja
    public function get streamType():String
    public function set streamType(value:String):void

Powiązane elementy interfejsu API

Konstruktor Szczegół

DynamicStreamingVideoSource

()Konstruktor
public function DynamicStreamingVideoSource()

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 4
Wersje środowiska wykonawczego: 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>




[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.