Packagecom.akamai.hd
Interfacepublic interface IMBRObject

This class defines an interface to a Multi-Bitrate Object. Typically it defines a series of renditions of the same piece of content, each encoded at a different bitrate. The HDMBRObject class implements this interface. Alternatively, you may have your own MBR object implement this interface, allowing it to be supplied directly to the play() method of the HDNetStream class.

See also

com.akamai.hd.HDMBRObject
com.akamai.hd.HDNetStream


Public Properties
 PropertyDefined By
  httpBase : String
The base component of the HTTP URL for each stream.
IMBRObject
  rtmpPlaybackBase : String
The URI pointing to the FMS application from which the player can playback the streams over rtmp after it has been instructed to fail-over.
IMBRObject
  streamCount : int
The number of streams in the package.
IMBRObject
  streams : Array
[read-only] Returns the array of stream/bitrate objects.
IMBRObject
  title : String
The human-readable title of the package
IMBRObject
Public Methods
 MethodDefined By
  
addStream(streamName:String, bitRate:Number, width:Number = 0, height:Number = 0):void
Adds a stream and bitrate pair to the DynamicStreamItem object
IMBRObject
  
getHeightAt(index:Number):Number
Returns the height of a given index in pixels.
IMBRObject
  
getNameAt(index:Number):String
Returns the stream name at a given index.
IMBRObject
  
getRateAt(index:Number):Number
Returns the bitrate of a given index in kbps.
IMBRObject
  
getWidthAt(index:Number):Number
Returns the width of a given index in pixels.
IMBRObject
  
setDimensionsAt(index:Number, width:Number, height:Number):void
Used to associate width and height properties with a given index
IMBRObject
Property Detail
httpBaseproperty
httpBase:String

The base component of the HTTP URL for each stream. It should always end with a trailing slash. An example would be

http://customer.edgesuite.net/


Implementation
    public function get httpBase():String
    public function set httpBase(value:String):void
rtmpPlaybackBaseproperty 
rtmpPlaybackBase:String

The URI pointing to the FMS application from which the player can playback the streams over rtmp after it has been instructed to fail-over. This property is not required unless you intend to build a player which can fail over to the same content on a RTMP network. An example would be:

rtmp://cp56789.live.edgefcs.net/live


Implementation
    public function get rtmpPlaybackBase():String
    public function set rtmpPlaybackBase(value:String):void
streamCountproperty 
streamCount:int

The number of streams in the package. It is possible for a MBRObject to hold only one stream, in which case playback will be single-bitrate rather than multi-bitrate.


Implementation
    public function get streamCount():int
    public function set streamCount(value:int):void
streamsproperty 
streams:Array  [read-only]

Returns the array of stream/bitrate objects. Each object has the following properties:

Property nameDescription
namethe name of the stream, for example event_angle_bitrate@12345
bitratethe bitrate of the rendition, in kbps. (not the bits per second as used in most SMIL files)
widththe native width of the stream in pixels if known, otherwise 0
heightthe native height of the stream in pixels if known, otherwise 0


Implementation
    public function get streams():Array
titleproperty 
title:String

The human-readable title of the package


Implementation
    public function get title():String
    public function set title(value:String):void
Method Detail
addStream()method
public function addStream(streamName:String, bitRate:Number, width:Number = 0, height:Number = 0):void

Adds a stream and bitrate pair to the DynamicStreamItem object

Parameters

streamName:String
 
bitRate:Number — in kbps (NOTE kbps, not bps)
 
width:Number (default = 0) — in pixels
 
height:Number (default = 0) — in pixels

getHeightAt()method 
public function getHeightAt(index:Number):Number

Returns the height of a given index in pixels. THis value needs to have been explicitly set via the setDimensionsAt() method. If the height is unknown, zero will be returned.

Parameters

index:Number

Returns
Number
getNameAt()method 
public function getNameAt(index:Number):String

Returns the stream name at a given index.

Parameters

index:Number

Returns
String
getRateAt()method 
public function getRateAt(index:Number):Number

Returns the bitrate of a given index in kbps.

Parameters

index:Number

Returns
Number
getWidthAt()method 
public function getWidthAt(index:Number):Number

Returns the width of a given index in pixels. THis value needs to have been explicitly set via the setDimensionsAt() method. If the width is unknown, zero will be returned.

Parameters

index:Number

Returns
Number
setDimensionsAt()method 
public function setDimensionsAt(index:Number, width:Number, height:Number):void

Used to associate width and height properties with a given index

Parameters

index:Number
 
width:Number
 
height:Number