RTMPConnection
| Kind of class: | class |
|---|---|
| Inherits from: | NetConnection |
| Author: | Stephen Cheng |
| Classpath: | mx.controls.streamingmedia.RTMPConnection |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
A subclass of NetConnection that is tailored to work with the RTMPPlayer
class.
class.
Summary
Constructor
- RTMPConnection (player:RTMPPlayer)
Class properties
- _connectFlag : Boolean
- Flag to indicate whether a thread is already in connect().
- _connectorQueue : Array
- Array of queued RTMPPlayers, awaiting their turn to call connect().
Instance properties
- _targetURI : String
- _streamName : String
- _player : RTMPPlayer
Instance methods
- connect (targetURI:String, streamName:String) : Void
- pushConnection (targetURI:String, streamName:String) : Void
- popConnection : Void
Event handlers
- onMetaData (info)
Constructor
RTMPConnection
Class properties
_connectFlag
static _connectFlag:Boolean
(read)
Flag to indicate whether a thread is already in connect(). Only one thread
at a time should be in this function.
at a time should be in this function.
_connectorQueue
static _connectorQueue:Array = new Array()
(read)
Array of queued RTMPPlayers, awaiting their turn to call connect().
Instance properties
_player
_streamName
private _streamName:String
(read)
_targetURI
private _targetURI:String
(read)
Instance methods
connect
function connect (
targetURI:String,
streamName:String) : Void
popConnection
private function popConnection (
) : Void
pushConnection
private function pushConnection (
targetURI:String,
streamName:String) : Void
Event handlers
onMetaData
function onMetaData (
info)