Pakiet | org.osmf.net |
Klasa | public class StreamingURLResource |
Dziedziczenie | StreamingURLResource ![]() ![]() ![]() |
Podklasy | DynamicStreamingResource, MulticastResource |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | OSMF 1.0 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Note that it is possible for live and recorded streams to have identical URLs. In such a case, the streamType property should be used to disambiguate live and recorded streams.
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
clipEndTime : Number
Optional end time of the streaming resource. | StreamingURLResource | ||
clipStartTime : Number
Optional start time of the streaming resource. | StreamingURLResource | ||
connectionArguments : Vector.<Object>
Optional set of arguments that will be supplied when making a
connection to the source of the stream. | StreamingURLResource | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
drmContentData : ByteArray
Content metadata for DRM-encrypted content. | StreamingURLResource | ||
![]() | mediaType : String
The MediaType, if any, of this resource. | MediaResourceBase | |
![]() | metadataNamespaceURLs : Vector.<String> [tylko do odczytu]
A Vector containing the namespace URLs for all Metadata
objects within this resource. | MediaResourceBase | |
![]() | mimeType : String
The MIME type, if any, of this resource. | MediaResourceBase | |
urlIncludesFMSApplicationInstance : Boolean
Indicates, for RTMP streaming URLs, whether the URL includes the FMS
application instance or not. | StreamingURLResource |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object |
clipEndTime | właściwość |
clipEndTime:Number
Optional end time of the streaming resource. When specified, the stream will be presented as a subclip, with playback ending at the specified end time. Note that clipEndTime is not currently supported for progressive videos. The default is NaN, which is to play to the end.
Implementacja
public function get clipEndTime():Number
public function set clipEndTime(value:Number):void
clipStartTime | właściwość |
clipStartTime:Number
Optional start time of the streaming resource. When specified, the stream will be presented as a subclip, with playback beginning at the specified start time. Note that clipStartTime is not currently supported for progressive videos. The default is NaN, which is to start at the beginning.
Implementacja
public function get clipStartTime():Number
public function set clipStartTime(value:Number):void
connectionArguments | właściwość |
drmContentData | właściwość |
urlIncludesFMSApplicationInstance | właściwość |
urlIncludesFMSApplicationInstance:Boolean
Indicates, for RTMP streaming URLs, whether the URL includes the FMS
application instance or not. If true, then the second part of the URL
path is considered the instance name, such as rtmp://host/app/foo/bar/stream
.
In this case the instance name would be 'foo' and the stream would be 'bar/stream'.
If false, then the second part of the URL path is considered to be the
stream name, such as rtmp://host/app/foo/bar/stream
. In this
case there is no instance name and the stream would be 'foo/bar/stream'.
The default is false.
Implementacja
public function get urlIncludesFMSApplicationInstance():Boolean
public function set urlIncludesFMSApplicationInstance(value:Boolean):void
package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import org.osmf.elements.VideoElement; import org.osmf.media.MediaPlayerSprite; import org.osmf.net.StreamType; import org.osmf.net.StreamingURLResource; public class StreamingURLResourceExample extends Sprite { public function StreamingURLResourceExample() { super(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite(); var videoElement:VideoElement = new VideoElement(); videoElement.resource = new StreamingURLResource("rtmp://cp34973.live.edgefcs.net/live/Flash_Live_Benchmark@632", StreamType.LIVE); addChild(mediaPlayerSprite); mediaPlayerSprite.media = videoElement; } } }
Tue Jun 12 2018, 12:06 PM Z