Packagecom.akamai.net
Classpublic class AkamaiHDNetStream
InheritanceAkamaiHDNetStream Inheritance HDNetStream Inheritance flash.net.NetStream

The AkamaiHDNetStream class extends HDNetStream to bring the capabilities of the Akamai HDN for Adobe Flash into the OVP. The class translates HDEvents into OvpEvents and establishes a MetricsProvider, so that it can be used interchangeably with AkamaiDynamicNetStream for playing back MBR content.

See also

com.akamai.hd.HDNetStream


Public Properties
 PropertyDefined By
 InheritedanalyticsBeacon : String
Activates the built-in Akamai Client Side Media Analytics plugin, by specifying the beacon path that the plugin should track against.
HDNetStream
 InheritedanalyticsPluginLoaderInstance : AnalyticsPluginLoader
Use this accessor instead of the analyticsBeacon accessor if you want to add multiple instances of the plugin in the same player.
HDNetStream
 InheritedautoRecoverFromTimeout : Boolean
Specifies whether the class should automatically try to recover from a timeout.
HDNetStream
 InheritedautoSwitch : Boolean
Defines whether the class should automatically switch between available bitrates.
HDNetStream
 InheritedaveragePlaybackBitsPerSecond : Number
[read-only] The smoothed and averaged playback bits per second.
HDNetStream
 InheritedbandwidthEstimationEnabled : Boolean
[read-only] Returns a Boolean value representing whether bandwidth estimation for MBR content at startup is enabled.
HDNetStream
 InheritedbufferLength : Number
[override] [read-only] Returns the buffer length in seconds
HDNetStream
 InheritedbufferTime : Number
[override] [Setter is DEPRECATED] Returns the current target buffer time on the netstream.
HDNetStream
 InheritedbytesLoaded : uint
[override] [read-only] Returns the bytes loaded since the last play request.
HDNetStream
 Inheritedclient : Object
[override] Sets the client property of the NetStream.
HDNetStream
 InheritedconsiderDimensionsWhenSwitching : Boolean
If enabled, the class will not switch up during multi-bitrate playback if the area that the video is being rendered at is smaller than the the native size of video.
HDNetStream
 Inheritedcpu : Number
[read-only] The system cpu as a percentage.
HDNetStream
 InheritedcurrentIndex : int
The current index that is rendering for a MBR object source.
HDNetStream
 InheritedcurrentIndexBitrate : Number
[read-only] The bitrate value of the current index,, in kbps.
HDNetStream
 InheriteddisableAllArchivePlayback : Boolean
If set true, this property will prohibit the class from playing back the archive portion of a live stream.
HDNetStream
 InheriteddisplayObject : DisplayObject
A reference to any object that participates in the display stack and which has a access to the "stage" property.
HDNetStream
 InheriteddownloadRatio : Number
[read-only] The downloadRatio is the ratio of the rate at which bytes are being downloaded over the rate at which they are being rendered.
HDNetStream
 InheriteddroppedFPS : Number
[read-only] The estimated dropped-frame rate, expressed in Hz.
HDNetStream
 InheriteddroppedFrames : uint
[read-only] Returns the absolute count of dropped frames since the last play request
HDNetStream
 Inheritedduration : Number
[read-only] Returns the duration of the stream in seconds.
HDNetStream
 InheriteddurationAsTimeCode : String
[read-only] Returns the duration of the stream as HH:MM:SS timecode
HDNetStream
 InheriteddvrWindow : Number
[read-only] Specifies the length of the DVR window, if implemented, in seconds.
HDNetStream
 InheritededgeIP : String
Returns the IP address of the Akamai Edge Server to which the client has connected.
HDNetStream
 InheritededgeVersion : String
Returns the version of the Akamai Edge Server to which the client has connected.
HDNetStream
 InheritedenableAlternateServerMapping : Boolean
If there is an issue with the stream at startup or during playback it may be caused by a server condition.
HDNetStream
 InheritedenableEndUserMapping : Boolean
If you enable this feature and enableAlternateServerMapping is not enabled - enableAlternateServerMapping will be enabled.
HDNetStream
 InheritedenableNetSessionDiscovery : Boolean
Enables the class to discover the NetSession interface .
HDNetStream
 InheritedestimatedCurrentBandwidth : Number
[read-only] The estimated current throughput between client and server, expressed in kilobits per second.
HDNetStream
 InheritedestimatedMaxbandwidth : Number
[read-only] The estimated maximum throughput between client and server, expressed in kilobits per second.
HDNetStream
 InheritedestimatedRTT : Number
[read-only] The estimated round-trip time between client and server, expressed in milliseconds.
HDNetStream
 InheritedisAsleep : Boolean
[read-only] eturns whether the flash runtime is in sleep mode.
HDNetStream
 InheritedisComplete : Boolean
[read-only] True if the stream has ended
HDNetStream
 InheritedisLiveStream : Boolean
[read-only] Specifies whether the stream playing is "live".
HDNetStream
 InheritedisPausedWhileLive : Boolean
[read-only] True if the stream has was paused while isPlayingLive was true.
HDNetStream
 InheritedisPlayingLive : Boolean
[read-only] Specifies whether the the stream is playing at "true" live.
HDNetStream
 InheritedisSwitching : Boolean
[read-only] Defines whether the class is currently executing a switch.
HDNetStream
 InheritedlastThrottleValue : Number
[read-only] The last throttle value requested form the server.
HDNetStream
 InheritedliveDrift : Number
[read-only] For live streams only, the estimated difference between the duration that the class is rendering and the latest duration that the server has, in seconds.
HDNetStream
 Inheritedloop : Boolean
If enabled, once the stream is complete it will loop back and begin playing from the start.
HDNetStream
 InheritedmaxBufferLength : Number
Specifies the maximum buffer length in seconds to allow when a) the class is paused b) single bitrate content is playing c) multi-bitrate content is playing at the highest rendition available.
HDNetStream
 InheritedmaximizeSingleBitrateBuffers : Boolean
Specifies wether the class should set the target buffer to a high value (default is 60s) for non-live single-bitrate content and for non-live multi-bitrate content where you are playing the highest available index.
HDNetStream
 InheritedmaximumBitrateAllowed : Number
When switching multi-bitrate content in auto-mode, this property specifies the maximum stream bitrate, in kbps, that the class is allowed to play.
HDNetStream
 InheritedmaxIndexAvailable : Number
[read-only] The highest index available for the current MBR object.
HDNetStream
 InheritedmaxIndexAvailableBitrate : Number
[read-only] The bitrate value of the highest index that is available, in kbps.
HDNetStream
 InheritedmaxLiveDriftAllowed : Number
[DEPRECATED] The maximum live drift value allowed, in seconds.
HDNetStream
 InheritedmaxSecondsWithoutData : Number
[read-only] The maximum number of seconds that the class has not received data while playing.
HDNetStream
 InheritedMBRObject : IMBRObject
[read-only] The current IMBRObject instance that the class is playing MBR content, or else null for SBR.
HDNetStream
 InheritednetSessionAcceptedEULA : Boolean
[read-only] Returns whether the Akamai NetStession client has had its EULA accepted.
HDNetStream
 InheritednetSessionClientAvailable : Boolean
[read-only] Returns true if the Akamai NetSession client is installed on the client machine.
HDNetStream
 InheritednetSessionCpCode : String
[write-only] Sets the CP code that the Akamai NetSession client will use.
HDNetStream
 InheritednominalFPS : Number
[read-only] The estimated frame rate of the video.
HDNetStream
 InheritedplaybackKbps : Number
[read-only] Returns the playback bitrate of the current stream, in kbps.
HDNetStream
 InheritedplayerIP : String
Returns the IP address of this player.
HDNetStream
 InheritedprimaryToken : String
[write-only] Sets the primaryToken for the class to use to perform EdgeAuthentication against the Akamai network.
HDNetStream
 InheritedqualityOfExperience : Number
[read-only] The quality of experience metric is a single number (with a range of 0-100) which attempts to sum up the quality of the playback experience.
HDNetStream
 InheritedreachedTargetBufferFull : Boolean
[read-only] True if the stream has reached its target buffer after starting.
HDNetStream
 InheritedrequiresEdgeAuth : Boolean
[DEPRECATED] - this property is maintained only to ensure backwards compatibility.
HDNetStream
 InheritedresumeDVRAtLive : Boolean
When set to false, if you pause a live stream, the stream will resume playing at the point at which it was paused.
HDNetStream
 InheritedsecondsUntilBufferEmpties : Number
[read-only] The estimated time in seconds until the buffer is empty.
HDNetStream
 InheritedsoundTransform : SoundTransform
[override] Sets the soundTransform object of the stream.
HDNetStream
 Inheritedsource : *
[read-only] Returns the source object which the class is currently playing.
HDNetStream
 InheritedstartingBitrate : Number
Sets the max bitrate value you wish to use at startup in kbps.
HDNetStream
 InheritedstartingBufferTime : Number
Setting this value will effect the startup time of the stream.
HDNetStream
 InheritedstartingIndex : Number
The starting index to use when playing MBR content.
HDNetStream
 InheritedstreamStartTime : Number
[read-only] The real world start time of the stream, in milliseconds since midnight January 1, 1970, universal time.
HDNetStream
 InheritedstreamType : int
Returns in integer representing the type of stream content that is currently rendering.
HDNetStream
 Inheritedtime : Number
[override] [read-only] Returns the playhead time of the stream in seconds.
HDNetStream
 InheritedtimeAsTimeCode : String
[read-only] Returns the playhead time of the stream as HH:MM:SS timecode
HDNetStream
 InheritedtokenService : ITokenService
[write-only] Sets the token service that the class will use to request an EdgeAuth token.
HDNetStream
 InheritedtrueBufferTime : Number
[read-only] The raw bufferTime value of the underlying netstream class.
HDNetStream
 InheriteduseFixedThrottleForSBR : Boolean
For single-bite rate content, there can be minimal benefit in constant throttle commands being issued.
HDNetStream
 InheriteduseVerboseGhostLogs : Boolean
[write-only] Toggles use of verbose logging on GHost.
HDNetStream
 Inheritedvolume : Number
Sets the volume of the stream.
HDNetStream
Public Methods
 MethodDefined By
  
AkamaiHDNetStream(connection:NetConnection)
Constructor
AkamaiHDNetStream
 Inherited
Checks to see if the Akamai NetSessionClient is installed on this machine.
HDNetStream
 Inherited
close():void
[override] Closes the NeStream and stops all running timers
HDNetStream
 Inherited
destroy():void
Prepares the class instance for deletion by cleaning out objects that may be held in memory.
HDNetStream
 Inherited
enableMBRIndexStableBuffer(enabled:Boolean = true, observationPeriod:Number, bufferIncrease:Number):void
In version v2.5 a feature was added to help stabilize the buffer by increasing it by 10 seconds per index once the index has been playing without a switch for more than 25 seconds.
HDNetStream
 Inherited
getQoSManager():HDN1QoSManager
This is for unit testing only.
HDNetStream
 Inherited
installNetSessionClient(filename:String = NetSessionInstaller, acceptedEula:Boolean = false, eulaVersion:String = Unknown EULA version):void
Installs the Akamai NetSession client with a given filename and optional acceptance of the EULA and specificaiton of the EULA version.
HDNetStream
 Inherited
Returns whether or not the class is playing multi-bitrate content.
HDNetStream
 Inherited
Triggers the class to make a request to the server for an updated TAT time.
HDNetStream
 Inherited
Sends a request to the Akamai NetSession client indicating that the user has accepted the EULA.
HDNetStream
 Inherited
pause():void
[override] Pauses the video.
HDNetStream
 Inherited
play(... args):void
[override] Commences playback of content through this netstream.
HDNetStream
 Inherited
resume():void
[override] Resumes playback of paused video.
HDNetStream
 Inherited
secondsToTimeCode(value:Number):String
A utility function for converting seconds into HH:MM:SS timecode.
HDNetStream
 Inherited
seek(value:Number):void
[override] Seek the stream.
HDNetStream
 Inherited
Triggers the class to dispatch an update its stats.
HDNetStream
 Inherited
setBandwidthEstimationEnabled(enabled:Boolean, bandwidthEstimationPeriodInSeconds:Number = 1):void
This method should only be used for MBR content and must be set before calling play.
HDNetStream
 Inherited
setCurrentIndex(index:Number):void
Sets the desired active index for multibitrate content.
HDNetStream
 Inherited
setRenderedDimensions(valueWidth:Number, valueHeight:Number):void
Tells the player what the dimensions of the rendered area for the video.
HDNetStream
 Inherited
For testing QOS alternate server mapping switch back to primary.
HDNetStream
 Inherited
For testing QOS Alternate server mapping force tag
HDNetStream
 Inherited
Triggers the class to dispatch a HDEvent.RENDITION_CHANGE event, which carries information about the current index that is rendering and the max index that is available.
HDNetStream
Events
 Event Summary Defined By
 InheritedDispatched when the class fails over to the alternate server map.HDNetStream
 InheritedDispatched when the disableAllArchivePlayback property is set true, and the class detects that the user is trying to access a live stream (or a stream that was formerly live) at a point other than true live, which is defined as being within 10s of the latest TAT time returned by the server.HDNetStream
 InheritedDispatched when a new estimate of the maximum bandwidth available between client and server is available from the class.HDNetStream
 InheritedDispatched when stream playback is complete.HDNetStream
 InheritedDispatched when the class receives a data message embedded in the stream.HDNetStream
 InheritedDispatched when the class detects that no bytes have been received in 10s following a buffer empty event.HDNetStream
 InheritedContains a debug message.HDNetStream
 InheritedDispatched when the DVR window is detected or is changed.HDNetStream
 InheritedDispatched when the player is paused on a live stream with dvr window enabled, and the player slides out of the available dvr window.HDNetStream
 InheritedDispatched when this class receives an error from the server.HDNetStream
 InheritedDispatched when the server informs the client that it must disconnect from the HTTP network and fail-over to the RTMP network.HDNetStream
 InheritedDispatched when a failure event occurs in one of the sub-classes which this class invokes, specifically the HDPrimaryTokenService or the HDController.HDNetStream
 InheritedDispatched when the buffering state of the class changes.HDNetStream
 InheritedDispatched when the state of the stream switches between live and archive.HDNetStream
 InheritedDispatched when the state of the stream switches between playing live and not playing live.HDNetStream
 InheritedDispatched when the stream loops back and plays from the start after completing.HDNetStream
 InheritedDispatched when a onMetaData callback has been received by the class.HDNetStream
 InheritedDispatched when the class detects a change in the presence of the Akamai NetSession client.HDNetStream
 InheritedDispatched when the class detects a change in the EULA status of the Akamai NetSession client.HDNetStream
 InheritedReturns the NetStatus events.HDNetStream
 InheritedDispatched when the class has been given a pause command.HDNetStream
 InheritedDispatched when the class receives a play request.HDNetStream
 InheritedThe progress event is an update event that is dispatched by the class at 100ms intervals.HDNetStream
 InheritedDispatched after the stream has experienced an unexpected rebuffer event during playback and has successfully re-filled its buffer.HDNetStream
 InheritedDispatched when there is a change in the rendition index that is being rendered.HDNetStream
 InheritedDispatched when the class has been given a resume command.HDNetStream
 InheritedDispatched when a new estimate of the Round Trip Time between client and server is available from the class.HDNetStream
 InheritedDispatched when the class has been given a seek command.HDNetStream
 InheritedDispatched when the class receives a new session ID from the server Data object carries the sessionID as a string.HDNetStream
 InheritedDispatched when the Flash Player's sleep mode has changed.HDNetStream
 InheritedDispatched when there is a change in the stream name being rendered.HDNetStream
 InheritedDispatched when the stream cannot be found on the server.HDNetStream
 InheritedDispatched when the class receives a stream-not-found message from the server during the course of normal playback.HDNetStream
 InheritedDispatched when the class detects a change in the stream start time.HDNetStream
 InheritedDispatched when there is a change in the type of stream being rendered.HDNetStream
 InheritedDispatched when a switch has completed.HDNetStream
 InheritedDispatched when a switch failure has been indicated by the server.HDNetStream
 InheritedDispatched when switch has commenced between multi-bitrate renditions.HDNetStream
 InheritedDispatched when the server times-out the connection due to its being idle past the idle-threshold.HDNetStream
Public Constants
 ConstantDefined By
 InheritedSLEEP_MODE_CHANGE : String = sleepModeChange
[static] Dispatched when the Flash Player sleep state changes.
HDNetStream
Constructor Detail
AkamaiHDNetStream()Constructor
public function AkamaiHDNetStream(connection:NetConnection)

Constructor

Parameters
connection:NetConnection