| 패키지 | org.osmf.net | 
| 클래스 | public class StreamingURLResource | 
| 상속 | StreamingURLResource    URLResource   MediaResourceBase   Object | 
| 하위 클래스 | DynamicStreamingResource, MulticastResource | 
| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | 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.
| 속성 | 정의 주체 | ||
|---|---|---|---|
| alternativeAudioStreamItems : Vector.<StreamingItem> 
		 Vector containing all alternative audio items associated with
		 the current streaming resource.  | StreamingURLResource | ||
| 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 
	 지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.  | Object | |
| drmContentData : ByteArray 
		 Content metadata for DRM-encrypted content.  | StreamingURLResource | ||
![]()  | mediaType : String 
		 The MediaType, if any, of this resource.  | MediaResourceBase | |
![]()  | metadataNamespaceURLs : Vector.<String> [읽기 전용] 
		 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 | |
| streamType : String 
         The StreamType for this resource.  | StreamingURLResource | ||
![]()  | url : String [읽기 전용] 
		 The URL of the resource.  | URLResource | |
| urlIncludesFMSApplicationInstance : Boolean 
		 Indicates, for RTMP streaming URLs, whether the URL includes the FMS
		 application instance or not.  | StreamingURLResource | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
StreamingURLResource(url:String, streamType:String = null, clipStartTime:Number = NaN, clipEndTime:Number = NaN, connectionArguments:Vector.<Object> = null, urlIncludesFMSApplicationInstance:Boolean = false, drmContentData:ByteArray = null) 
		 Constructor.  | StreamingURLResource | ||
![]()  | 
		 Adds a metadata value to this resource.  | MediaResourceBase | |
![]()  | 
		 Retrieves a metadata value from this resource.  | MediaResourceBase | |
![]()  | 
	 지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.  | Object | |
![]()  | 
		 Removes a metadata value from this resource.  | MediaResourceBase | |
![]()  | 
     루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.  | Object | |
![]()  | 
	 로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 프리미티브 값을 반환합니다.  | Object | |
alternativeAudioStreamItems | 속성 | 
alternativeAudioStreamItems:Vector.<StreamingItem>| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Vector containing all alternative audio items associated with the current streaming resource.
구현
    public function get alternativeAudioStreamItems():Vector.<StreamingItem>    public function set alternativeAudioStreamItems(value:Vector.<StreamingItem>):voidclipEndTime | 속성 | 
clipEndTime:NumberOptional 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.
구현
    public function get clipEndTime():Number    public function set clipEndTime(value:Number):voidclipStartTime | 속성 | 
clipStartTime:NumberOptional 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.
구현
    public function get clipStartTime():Number    public function set clipStartTime(value:Number):voidconnectionArguments | 속성 | 
drmContentData | 속성 | 
streamType | 속성 | 
streamType:String| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
The StreamType for this resource. The default value is StreamType.RECORDED.
		 The StreamType class enumerates the valid stream types.
This property may return the following string values:
| String value | Description | 
|---|---|
StreamType.LIVE_OR_RECORDED | The StreamingURLResource represents either a live or a recorded stream. | 
StreamType.LIVE | The StreamingURLResource represents a live stream. | 
StreamType.RECORDED | The StreamingURLResource represents a recorded stream. | 
StreamType.DVR | The StreamingURLResource represents a DVR stream. | 
구현
    public function get streamType():String    public function set streamType(value:String):void관련 API 요소
urlIncludesFMSApplicationInstance | 속성 | 
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.
		 
구현
    public function get urlIncludesFMSApplicationInstance():Boolean    public function set urlIncludesFMSApplicationInstance(value:Boolean):voidStreamingURLResource | () | 생성자 | 
public function StreamingURLResource(url:String, streamType:String = null, clipStartTime:Number = NaN, clipEndTime:Number = NaN, connectionArguments:Vector.<Object> = null, urlIncludesFMSApplicationInstance:Boolean = false, drmContentData:ByteArray = null)| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Constructor.
매개 변수url:String — The URL of the resource. For details about how to format this
		 URL for flv, mp4, and other file formats, see the Adobe® Flash® Media Server
		 documentation link below.
		  | |
streamType:String (default = null) — The type of the stream. If null, defaults to
		 StreamType.RECORDED.
		  | |
clipStartTime:Number (default = NaN) — 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.
		  | |
clipEndTime:Number (default = NaN) — 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.
		  | |
connectionArguments:Vector.<Object> (default = null) — Optional set of arguments that will be
		 supplied to NetConnection.connect when establishing a connection
		 to the source of the stream.
		  | |
urlIncludesFMSApplicationInstance:Boolean (default = false) — 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.
		  | |
drmContentData:ByteArray (default = null) — Content metadata for DRM-encrypted content.
		  
		   | 
추가 정보
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, 03:17 PM Z
 
 상속되는 공용 속성 숨기기
 상속되는 공용 속성 표시