|Class||public class AkamaiNetStream|
|Inheritance||AkamaiNetStream OvpNetStream flash.net.NetStream|
|bufferPercentage : Number|
[read-only] The buffer percentage currently reported by the stream.
|bufferTimeout : Number||OvpNetStream|
|client : Object|
[override] [write-only] Sets the client object for this class, to enable integration into existing players which like to receive onMetaData, onPlayStatus etc via callback events.
|createProgressivePauseEvents : Boolean|
Since the Flash player does not dispatch pause and resume events for progressive download files, setting this property to true, will cause this class to dispatch the proper events when pause or resume is called.
|fastMotionFrameStepAmount : uint|
Use this accessor to set the value of the variable that controls how many frames will be stepped over during fast motion playback.
|fastMotionStepInterval : uint|
Use this accessor to set the value of the variable that controls how quickly the frames will be stepped over during fast motion playback.
|fastStartMinBufferLength : Number|
Added by Will for suppport player
|isBuffering : Boolean|
[read-only] Returns the buffering status of the stream.
|isLive : Boolean|
The isLive flag is a convenience property.
|isProgressive : Boolean|
[read-only] Informs whether the current connection is progressive or not.
|liveRetryInterval : Number|
Defines the live stream retry interval in seconds
|liveStreamAuthParams : String|
The name-value pairs required for invoking stream-level authorization services against live streams on the Akamai network.
|liveStreamMasterTimeout : Number|
The maximum number of seconds the class should wait before timing out while trying to locate a live stream on the network.
|maxBufferLength : Number|
The desired buffer length set for the NetStream, in seconds.
|netConnection : NetConnection|
[read-only] Get the NetConnection object this class is using.
|panning : Number|
The panning of the current NetStream.
|progressInterval : Number|
The interval in milliseconds at which the OvpEvent.PROGRESS event is dispatched.
|retryLiveStreamsIfUnavailable : Boolean|
If this property is true, then if a live stream is playing and becomes unpublished due to both the primary and backup encoders ceasing to publish, the class will automatically enter into a retry cycle, where it will attempt to play the streams again.
|slowMotionFrameStepAmount : uint|
Use this accessor to set the value of the variable that controls how many frames will be stepped over during slow motion playback.
|slowMotionStepInterval : uint|
Use this accessor to set the value of the variable that controls how quickly the frames will be stepped over during slow motion playback.
|streamLength : Number|
[read-only] The stream length for a progressive download.
|streamTimeout : Number|
The maximum number of seconds the class should wait before timing out while trying to locate a stream on the network.
|timeAsTimeCode : String|
[read-only] Returns the current time of the stream, as timecode HH:MM:SS.
|useFastStartBuffer : Boolean|
Dictates whether a fast start (dual buffer) strategy should be used.
|volume : Number|
The volume of the NetStream.
|_akamaiConnection : AkamaiConnection||AkamaiNetStream|
|_liveRetryInterval : Number||AkamaiNetStream|
|_liveStreamAuthParams : String||AkamaiNetStream|
|_liveStreamMasterTimeout : Number||AkamaiNetStream|
|_liveStreamRetryTimer : Timer||AkamaiNetStream|
|_liveStreamTimeoutTimer : Timer||AkamaiNetStream|
|_pendingLiveStreamName : String||AkamaiNetStream|
|_playingLiveStream : Boolean||AkamaiNetStream|
|_playReissueRequired : Boolean||AkamaiNetStream|
|_retryLiveStreamsIfUnavailable : Boolean||AkamaiNetStream|
|_successfullySubscribed : Boolean||AkamaiNetStream|
[override] Closes the stream.
fastMotionOn(forward:Boolean = true, overrideStepRate:Number, overrideStepInterval:Number):void
Turns on fast motion playback - NOTE - for use with FMS streaming
Initiates the process of extracting the ID3 information from an MP3 file.
[override] This method supports both streaming and progressive playback.
slowMotionOn(forward:Boolean = true, overrideStepRate:Number, overrideStepInterval:Number):void
Turns on slow motion playback - NOTE - for use with FMS streaming
Returns playback mode to normal and cleans up.
Initiates the process of unsubscribing from the active live NetStream.
|Dispatched if the class receives an AsyncErrorEvent.ASYNC_ERROR event.||OvpNetStream|
|Dispatched when a stream from a server is complete.||OvpNetStream|
|Dispatched when an embedded cue point is reached while playing a video.||OvpNetStream|
|Dispatched when the class has detected, by analyzing the NetStream.netStatus events, the end of the stream.||OvpNetStream|
|Dispatched when an OVP error condition has occurred.||OvpNetStream|
|Dispatched when the class receives information about ID3 data embedded in an MP3 file.||OvpNetStream|
|Dispatched when the class receives an image embedded in a H.264 file.||OvpNetStream|
|Dispatched when the class receives descriptive information embedded in the video file being played.||OvpNetStream|
|Dispatched if the class' onFI callback is called.||OvpNetStream|
|Dispatched when the class has completely played a stream or switches to a different stream in a server-side playlist.||OvpNetStream|
|Dispatched repeatedly at the progressInterval once the class begins playing a stream.||OvpNetStream|
|Dispatched if metadata matching the name "duration" is received while playing a progressive stream.||OvpNetStream|
|Dispatched when the class is making a new attempt to subscribe to a live stream.||AkamaiNetStream|
|Dispatched when the class has successfully subscribed to a live stream.||AkamaiNetStream|
|Dispatched when the class receives text data embedded in a H.264 file.||OvpNetStream|
|Dispatched if the trick timer event onTrickMotion callback is called.||OvpNetStream|
|Dispatched when the class has unsubscribed from a live stream, or when the live stream it was previously subscribed to has ceased publication.||AkamaiNetStream|
|LIVE_RETRY_INTERVAL : Number = 15000||AkamaiNetStream|
|LIVE_RETRY_TIMEOUT : Number = 1200000||AkamaiNetStream|
protected var _akamaiConnection:AkamaiConnection
protected var _liveRetryInterval:Number
protected var _liveStreamAuthParams:String
protected var _liveStreamMasterTimeout:Number
protected var _liveStreamRetryTimer:Timer
protected var _liveStreamTimeoutTimer:Timer
protected var _pendingLiveStreamName:String
protected var _playingLiveStream:Boolean
protected var _playReissueRequired:Boolean
protected var _retryLiveStreamsIfUnavailable:Boolean
protected var _successfullySubscribed:Boolean
Defines the live stream retry interval in seconds
The default value is
public function get liveRetryInterval():Number
public function set liveRetryInterval(value:Number):void
public function get liveStreamAuthParams():String
public function set liveStreamAuthParams(value:String):void
The maximum number of seconds the class should wait before timing out while trying to locate a live stream
on the network. This time begins decrementing the moment a
play request is made against a live
stream, or after the class receives an onUnpublish event while still playing a live stream, in which case it
attempts to automatically reconnect. After this master time out has been triggered, the class will issue
OvpError.STREAM_NOT_FOUND event .
The default value is
public function get liveStreamMasterTimeout():Number
public function set liveStreamMasterTimeout(value:Number):void
If this property is true, then if a live stream is playing and becomes unpublished due to both the primary and backup encoders ceasing to publish, the class will automatically enter into a retry cycle, where it will attempt to play the streams again. Similarly, if a play request is made and the live stream is not found, the class will reattempt the streams at a predefined interval. This interval is set by the liveRetryInterval. The retries will cease and timeout once the liveRetryTimeout value has elapsed without a successfull play.
The default value is
public function get retryLiveStreamsIfUnavailable():Boolean
public function set retryLiveStreamsIfUnavailable(value:Boolean):void
public function AkamaiNetStream(connection:Object)
override public function close():void
Closes the stream.
override public function play(... arguments):void
This method supports both streaming and progressive playback.Streaming playback: The stream name argument format will vary depending on the type of file you are streaming. The various conventions are best understood if we explain how the server processes the filename that it receives. If there is no reserved prefix at the start of the file, then FMS assumes that an FLV file is being played and will automatically append a ".flv" to the end of the stream name when retrieving the file from storage. If the stream name begins with "mp3:" then the server assumes that an .mp3 file is being played and will add a ".mp3" extension to the filename. If the stream beins with "mp4:" then the server assumes a H.264 file is being played and will add a ".mp4" extension unless it detects another extension already there. Given this server-side behavior, the following stream naming rules apply:
public function unsubscribe():Boolean
Initiates the process of unsubscribing from the active live NetStream. This method can only be called if the class is currently subscribed to a live stream. Since unsubscription is an asynchronous process, confirmation of a successful unsubscription is delivered via the OvpEvent.UNSUBSCRIBED event.Returns
Dispatched when the class is making a new attempt to subscribe to a live stream.
Dispatched when the class has successfully subscribed to a live stream.
Dispatched when the class has unsubscribed from a live stream, or when the live stream it was previously subscribed to has ceased publication.
protected const LIVE_RETRY_INTERVAL:Number = 15000
protected const LIVE_RETRY_TIMEOUT:Number = 1200000