Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
spark.components.mediaClasses 

DynamicStreamingVideoSource  - AS3 Flex

Paquetespark.components.mediaClasses
Clasepublic class DynamicStreamingVideoSource
HerenciaDynamicStreamingVideoSource Inheritance Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: 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.

Sintaxis MXMLexpandedOcultar sintaxis 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"
  />
  

Propiedad MXML predeterminadastreamItems

Ver los ejemplos

Elementos de API relacionados



Propiedades públicas
 PropiedadDefinido por
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
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
Métodos públicos
 MétodoDefinido por
  
Constructor.
DynamicStreamingVideoSource
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Información sobre propiedades

host

propiedad
host:Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: 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.



Implementación
    public function get host():Object
    public function set host(value:Object):void

Elementos de API relacionados

initialIndex

propiedad 
initialIndex:int

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

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



Implementación
    public function get initialIndex():int
    public function set initialIndex(value:int):void

streamItems

propiedad 
streamItems:Vector.<DynamicStreamingVideoItem>

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

The metadata info object with properties describing the FLB file.



Implementación
    public function get streamItems():Vector.<DynamicStreamingVideoItem>
    public function set streamItems(value:Vector.<DynamicStreamingVideoItem>):void

streamType

propiedad 
streamType:String

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: 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.

El valor predeterminado es any.



Implementación
    public function get streamType():String
    public function set streamType(value:String):void

Elementos de API relacionados

Información sobre constructores

DynamicStreamingVideoSource

()Información sobre
public function DynamicStreamingVideoSource()

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: 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 ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.