Pacchetto | mx.messaging.channels |
Classe | public class RTMPChannel |
Ereditarietà | RTMPChannel NetConnectionChannel PollingChannel Channel EventDispatcher Object |
Sottoclassi | SecureRTMPChannel |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The RTMPChannel relies on network services native to Flash Player, and exposed to ActionScript by the NetConnection class. This Channel uses NetConnection exclusively.
Channels are created within the framework using the
ServerConfig.getChannel()
method. Channels can be constructed
directly and assigned to a ChannelSet if desired.
Channels represent a physical connection to a remote endpoint. Channels are shared across destinations by default. This means that a client targetting different destinations may use the same Channel to communicate with these destinations.
Proprietà | Definito da | ||
---|---|---|---|
authenticated : Boolean [sola lettura]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [sola lettura]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [sola lettura]
Indicates whether this channel has established a connection to the
remote destination. | Channel | ||
connectTimeout : int
Provides access to the connect timeout in seconds for the channel. | Channel | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
endpoint : String [sola lettura]
Provides access to the endpoint for this channel. | Channel | ||
failoverURIs : Array
Provides access to the set of endpoint URIs that this channel can
attempt to failover to if the endpoint is clustered. | Channel | ||
id : String
Provides access to the id of this channel. | Channel | ||
netConnection : NetConnection [sola lettura]
Provides access to the associated NetConnection for this Channel. | NetConnectionChannel | ||
protocol : String [override] [sola lettura]
Returns the protocol for this channel (rtmp or rtmpt). | RTMPChannel | ||
reconnecting : Boolean [sola lettura]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [sola lettura]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [sola lettura]
Channel property determines the level of performance information injection - whether
we inject timestamps or not. | Channel | ||
requestTimeout : int
Provides access to the default request timeout in seconds for the
channel. | Channel | ||
uri : String
Provides access to the URI used to create the whole endpoint URI for this channel. | Channel |
Metodo | Definito da | ||
---|---|---|---|
Creates an new RTMPChannel instance. | RTMPChannel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | EventDispatcher | ||
Subclasses should override this method to apply any settings that may be
necessary for an individual channel. | Channel | ||
Connects the ChannelSet to the Channel. | Channel | ||
Disables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Disconnects the ChannelSet from the Channel. | Channel | ||
Invia un evento nel flusso di eventi. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Sends a CommandMessage to the server to logout if the Channel is connected. | Channel | ||
[override]
Do nothing if the client requests that we poll. | RTMPChannel | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | ||
[override]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher |
Costante | Definito da | ||
---|---|---|---|
CODE_CONNECT_CLOSED : String = "Connect.Closed" [statico]
Status code for connection closed. | RTMPChannel | ||
CODE_CONNECT_FAILED : String = "Connect.Failed" [statico]
Status code for connection failed. | RTMPChannel | ||
CODE_CONNECT_NETWORKCHANGE : String = "Connect.NetworkChange" [statico]
Status code for connection network change. | RTMPChannel | ||
CODE_CONNECT_REJECTED : String = "Connect.Rejected" [statico]
Status code for connection rejected. | RTMPChannel | ||
CODE_CONNECT_SUCCESS : String = "Connect.Success" [statico]
Status code for connection success. | RTMPChannel |
protocol | proprietà |
protocol:String
[sola lettura] [override] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Returns the protocol for this channel (rtmp or rtmpt).
Implementazione
override public function get protocol():String
RTMPChannel | () | Funzione di costruzione |
public function RTMPChannel(id:String = null, uri:String = null)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Creates an new RTMPChannel instance.
Parametriid:String (default = null ) — The id of this channel
| |
uri:String (default = null ) — The uri for this channel
|
poll | () | metodo |
override public function poll():void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Do nothing if the client requests that we poll.
CODE_CONNECT_CLOSED | Costante |
protected static const CODE_CONNECT_CLOSED:String = "Connect.Closed"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Status code for connection closed.
CODE_CONNECT_FAILED | Costante |
protected static const CODE_CONNECT_FAILED:String = "Connect.Failed"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Status code for connection failed.
CODE_CONNECT_NETWORKCHANGE | Costante |
protected static const CODE_CONNECT_NETWORKCHANGE:String = "Connect.NetworkChange"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Status code for connection network change.
CODE_CONNECT_REJECTED | Costante |
protected static const CODE_CONNECT_REJECTED:String = "Connect.Rejected"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Status code for connection rejected.
CODE_CONNECT_SUCCESS | Costante |
protected static const CODE_CONNECT_SUCCESS:String = "Connect.Success"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Status code for connection success.
Tue Jun 12 2018, 02:44 PM Z