| Package | org.openvideoplayer.net.dynamicstream |
| Class | public class DynamicStreamItem |
| Inheritance | DynamicStreamItem Object |
| Property | Defined By | ||
|---|---|---|---|
| len : Number
len:Number
Default is -1 to coincide with defaults for NetStream.play()
| DynamicStreamItem | ||
| reset : Boolean
reset:Boolean
Default is true to coincide with defaults for NetStream.play()
| DynamicStreamItem | ||
| start : Number
Start time for the stream
Default is -2 to coincide with defaults for NetStream.play()
| DynamicStreamItem | ||
| startingIndex : Number
Stores the preferred starting index
| DynamicStreamItem | ||
| streamAuth : String
Specifies stream auth params to use with this DSI. | DynamicStreamItem | ||
| streamCount : Number
Stores the number of items held by this class
| DynamicStreamItem | ||
| streams : Array [read-only]
Returns the array of DynamicStreamBitrate objects
| DynamicStreamItem | ||
| Method | Defined By | ||
|---|---|---|---|
| DynamicStreamItem | |||
addStream(streamName:String, bitRate:Number):void
Adds a stream and bitrate pair to the DynamicStreamItem object
| DynamicStreamItem | ||
getBitrateAt(index:uint):DynamicStreamBitrate
Returns the DynamicStreamBitrate object at the requested index
| DynamicStreamItem | ||
getNameAt(index:uint):String
Returns the name of the stream at the given index
| DynamicStreamItem | ||
getRateAt(index:int):Number
Returns the bitrate of the stream at the given index
| DynamicStreamItem | ||
incrementFailCountAt(index:uint):void
Increments the failed counter at the requested index
| DynamicStreamItem | ||
indexFromName(name:String):int
Returns the index associated with a bitrate name. | DynamicStreamItem | ||
isAvailable(index:int):Boolean
Returns true if a index is available
| DynamicStreamItem | ||
isLockedAt(index:int):Boolean
Returns true if this index level is currently locked. | DynamicStreamItem | ||
lock(index:int):void
Sets the lock level at the provided index. | DynamicStreamItem | ||
| len | property |
public var len:Numberlen:Number Default is -1 to coincide with defaults for NetStream.play()
| reset | property |
public var reset:Booleanreset:Boolean Default is true to coincide with defaults for NetStream.play()
| start | property |
public var start:NumberStart time for the stream Default is -2 to coincide with defaults for NetStream.play()
| startingIndex | property |
public var startingIndex:NumberStores the preferred starting index
| streamAuth | property |
public var streamAuth:StringSpecifies stream auth params to use with this DSI. Default is ""
| streamCount | property |
public var streamCount:NumberStores the number of items held by this class
| streams | property |
streams:Array [read-only] Returns the array of DynamicStreamBitrate objects
public function get streams():Array| DynamicStreamItem | () | Constructor |
public function DynamicStreamItem()| addStream | () | method |
public function addStream(streamName:String, bitRate:Number):voidAdds a stream and bitrate pair to the DynamicStreamItem object
Parameters
streamName:String | |
bitRate:Number — in kbps
|
| getBitrateAt | () | method |
public function getBitrateAt(index:uint):DynamicStreamBitrateReturns the DynamicStreamBitrate object at the requested index
Parameters
index:uint |
DynamicStreamBitrate |
| getNameAt | () | method |
public function getNameAt(index:uint):StringReturns the name of the stream at the given index
Parameters
index:uint |
String |
| getRateAt | () | method |
public function getRateAt(index:int):NumberReturns the bitrate of the stream at the given index
Parameters
index:int |
Number |
| incrementFailCountAt | () | method |
public function incrementFailCountAt(index:uint):voidIncrements the failed counter at the requested index
Parameters
index:uint |
| indexFromName | () | method |
public function indexFromName(name:String):intReturns the index associated with a bitrate name. The match will be tried both with and without a mp4: prefix.
Parameters
name:String |
int |
| isAvailable | () | method |
public function isAvailable(index:int):BooleanReturns true if a index is available
Parameters
index:int |
Boolean |
| isLockedAt | () | method |
public function isLockedAt(index:int):BooleanReturns true if this index level is currently locked.
Parameters
index:int |
Boolean |
| lock | () | method |
public function lock(index:int):voidSets the lock level at the provided index. Any item at this index or higher will be unavailable until the LOCK_INTERVAL has passed.
Parameters
index:int |