| Package | com.akamai.hd |
| Interface | public interface IMBRObject |
See also
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| httpBase | property |
httpBase:StringThe 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/
public function get httpBase():String public function set httpBase(value:String):void| rtmpPlaybackBase | property |
rtmpPlaybackBase:StringThe 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
public function get rtmpPlaybackBase():String public function set rtmpPlaybackBase(value:String):void| streamCount | property |
streamCount:intThe 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.
public function get streamCount():int public function set streamCount(value:int):void| streams | property |
streams:Array [read-only] Returns the array of stream/bitrate objects. Each object has the following properties:
| Property name | Description |
|---|---|
| name | the name of the stream, for example event_angle_bitrate@12345 |
| bitrate | the bitrate of the rendition, in kbps. (not the bits per second as used in most SMIL files) |
| width | the native width of the stream in pixels if known, otherwise 0 |
| height | the native height of the stream in pixels if known, otherwise 0 |
public function get streams():Array| title | property |
title:StringThe human-readable title of the package
public function get title():String public function set title(value:String):void| addStream | () | method |
public function addStream(streamName:String, bitRate:Number, width:Number = 0, height:Number = 0):voidAdds 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):NumberReturns 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 |
Number |
| getNameAt | () | method |
public function getNameAt(index:Number):StringReturns the stream name at a given index.
Parameters
index:Number |
String |
| getRateAt | () | method |
public function getRateAt(index:Number):NumberReturns the bitrate of a given index in kbps.
Parameters
index:Number |
Number |
| getWidthAt | () | method |
public function getWidthAt(index:Number):NumberReturns 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 |
Number |
| setDimensionsAt | () | method |
public function setDimensionsAt(index:Number, width:Number, height:Number):voidUsed to associate width and height properties with a given index
Parameters
index:Number | |
width:Number | |
height:Number |