Pakket | spark.components.mediaClasses |
Klasse | public class DynamicStreamingVideoSource |
Overerving | DynamicStreamingVideoSource Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
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.
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" />
Standaard-MXML-eigenschapstreamItems
Verwante API-elementen
spark.components.VideoDisplay
spark.components.mediaClasses.DynamicStreamingVideoItem
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | DynamicStreamingVideoSource | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
host | eigenschap |
host:Object
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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.
Implementatie
public function get host():Object
public function set host(value:Object):void
Verwante API-elementen
initialIndex | eigenschap |
initialIndex:int
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
The preferred starting index. This corresponds to the stream item that should be attempted first.
Implementatie
public function get initialIndex():int
public function set initialIndex(value:int):void
streamItems | eigenschap |
streamItems:Vector.<DynamicStreamingVideoItem>
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
The metadata info object with properties describing the FLB file.
Implementatie
public function get streamItems():Vector.<DynamicStreamingVideoItem>
public function set streamItems(value:Vector.<DynamicStreamingVideoItem>):void
streamType | eigenschap |
streamType:String
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | 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.
De standaardwaarde is any.
Implementatie
public function get streamType():String
public function set streamType(value:String):void
Verwante API-elementen
DynamicStreamingVideoSource | () | Constructor |
public function DynamicStreamingVideoSource()
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Constructor.
<?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:42 AM Z