Packagecom.akamai.hd
Classpublic class HDMBRObject
InheritanceHDMBRObject Inheritance Object
Implements IMBRObject2

The HDMBRObject is simply a container for holding a set of multi-bitrate renditions, along with some metadata that pertains to that package.



Public Properties
 PropertyDefined By
  clipBegin : Number
For sub-clip support, specifies in seconds where playback should begin.
HDMBRObject
  clipEnd : Number
For sub-clip support, specifies in seconds when playback should end.
HDMBRObject
  httpBase : String
The base component of the HTTP URL for each stream.
HDMBRObject
  primaryToken : String
A primary token to be set in HDNetStream to enable secure playback.
HDMBRObject
  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.
HDMBRObject
  streamCount : int
The number of streams in the package.
HDMBRObject
  streams : Array
Returns the array of stream/bitrate objects.
HDMBRObject
  title : String
The title of the package
HDMBRObject
Public Methods
 MethodDefined By
  
Constructor for HDMBRObject
HDMBRObject
  
addStream(streamName:String, bitRate:Number, width:Number = 0, height:Number = 0):void
Adds a stream and bitrate pair to the DynamicStreamItem object
HDMBRObject
  
getHeightAt(index:Number):Number
Returns the height of a given index in pixels.
HDMBRObject
  
getNameAt(index:Number):String
Returns the stream name at a given index.
HDMBRObject
  
getRateAt(index:Number):Number
Returns the bitrate of a given index in kbps.
HDMBRObject
  
getWidthAt(index:Number):Number
Returns the width of a given index in pixels.
HDMBRObject
  
setDimensionsAt(index:Number, width:Number, height:Number):void
Used to associate width and height properties with a given index
HDMBRObject
Property Detail
clipBeginproperty
clipBegin:Number

For sub-clip support, specifies in seconds where playback should begin. This is an offset in seconds from the beginning of the stream.


Implementation
    public function get clipBegin():Number
    public function set clipBegin(value:Number):void
clipEndproperty 
clipEnd:Number

For sub-clip support, specifies in seconds when playback should end. Supplying a value of -1 will play the remainder of the clip.


Implementation
    public function get clipEnd():Number
    public function set clipEnd(value:Number):void
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
primaryTokenproperty 
primaryToken:String

A primary token to be set in HDNetStream to enable secure playback.


Implementation
    public function get primaryToken():String
    public function set primaryToken(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 HDMBRObject 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

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
    public function set streams(value:Array):void
titleproperty 
title:String

The title of the package


Implementation
    public function get title():String
    public function set title(value:String):void
Constructor Detail
HDMBRObject()Constructor
public function HDMBRObject()

Constructor for HDMBRObject

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
 
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