| Pacchetto | spark.components.mediaClasses |
| Classe | public class DynamicStreamingVideoItem |
| Ereditarietà | DynamicStreamingVideoItem Object |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 4 |
| Versioni 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.
Sintassi MXML
Nascondi sintassi 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=""
/>
Elementi API correlati
spark.components.VideoPlayer
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoSource
Proprietà pubbliche
| Proprietà | Definito da | ||
|---|---|---|---|
| bitrate : Number
The bit rate for the video stream. | DynamicStreamingVideoItem | ||
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
| streamName : String
The stream name on the server. | DynamicStreamingVideoItem | ||
Metodi pubblici
| Metodo | Definito da | ||
|---|---|---|---|
Constructor. | DynamicStreamingVideoItem | ||
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
Descrizione delle proprietà
bitrate | proprietà |
streamName | proprietà |
streamName:String| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 4 |
| Versioni 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.
Implementazione
public function get streamName():String public function set streamName(value:String):voidElementi API correlati
Descrizione della funzione di costruzione
DynamicStreamingVideoItem | () | Funzione di costruzione |
public function DynamicStreamingVideoItem()| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 4 |
| Versioni runtime: | 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, 02:44 PM Z
Mostra sintassi MXML