| Pacote | spark.components.mediaClasses |
| Classe | public class DynamicStreamingVideoItem |
| Herança | DynamicStreamingVideoItem Object |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 4 |
| Versões de runtime: | 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.
Sintaxe MXML
Ocultar sintaxe 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=""
/>
Elementos da API relacionados
spark.components.VideoPlayer
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
Propriedades públicas
| Propriedade | Definido por | ||
|---|---|---|---|
| bitrate : Number
The bit rate for the video stream. | DynamicStreamingVideoItem | ||
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
| streamName : String
The stream name on the server. | DynamicStreamingVideoItem | ||
Métodos públicos
| Método | Definido por | ||
|---|---|---|---|
Constructor. | DynamicStreamingVideoItem | ||
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
Detalhes da propriedade
bitrate | propriedade |
streamName | propriedade |
streamName:String| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 4 |
| Versões de runtime: | 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.
Implementação
public function get streamName():String public function set streamName(value:String):voidElementos da API relacionados
Detalhes do construtor
DynamicStreamingVideoItem | () | Construtor |
public function DynamicStreamingVideoItem()| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 4 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Constructor.
Exemplos Como usar este exemplo
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>
Wed Jun 13 2018, 11:10 AM Z
Mostrar sintaxe MXML