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.

Summary


Constructor
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
Instance methods
Event handlers

Constructor

RTMPConnection

function RTMPConnection (
player:RTMPPlayer)

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.

_connectorQueue

static _connectorQueue:Array = new Array()
(read)

Array of queued RTMPPlayers, awaiting their turn to call connect().

Instance properties

_player

private _player:RTMPPlayer
(read)

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