Paquete | mx.messaging.channels |
Clase | public class RTMPChannel |
Herencia | RTMPChannel NetConnectionChannel PollingChannel Channel EventDispatcher Object |
Subclases | SecureRTMPChannel |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Propiedad | Definido por | ||
---|---|---|---|
authenticated : Boolean [solo lectura]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [solo lectura]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [solo lectura]
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
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
endpoint : String [solo lectura]
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 [solo lectura]
Provides access to the associated NetConnection for this Channel. | NetConnectionChannel | ||
protocol : String [override] [solo lectura]
Returns the protocol for this channel (rtmp or rtmpt). | RTMPChannel | ||
reconnecting : Boolean [solo lectura]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [solo lectura]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [solo lectura]
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 |
Método | Definido por | ||
---|---|---|---|
Creates an new RTMPChannel instance. | RTMPChannel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de 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 | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | 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 si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
[override]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Constante | Definido por | ||
---|---|---|---|
CODE_CONNECT_CLOSED : String = "Connect.Closed" [estática]
Status code for connection closed. | RTMPChannel | ||
CODE_CONNECT_FAILED : String = "Connect.Failed" [estática]
Status code for connection failed. | RTMPChannel | ||
CODE_CONNECT_NETWORKCHANGE : String = "Connect.NetworkChange" [estática]
Status code for connection network change. | RTMPChannel | ||
CODE_CONNECT_REJECTED : String = "Connect.Rejected" [estática]
Status code for connection rejected. | RTMPChannel | ||
CODE_CONNECT_SUCCESS : String = "Connect.Success" [estática]
Status code for connection success. | RTMPChannel |
protocol | propiedad |
protocol:String
[solo lectura] [override] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Returns the protocol for this channel (rtmp or rtmpt).
Implementación
override public function get protocol():String
RTMPChannel | () | Información sobre |
public function RTMPChannel(id:String = null, uri:String = null)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Creates an new RTMPChannel instance.
Parámetrosid:String (default = null ) — The id of this channel
| |
uri:String (default = null ) — The uri for this channel
|
poll | () | método |
override public function poll():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Do nothing if the client requests that we poll.
CODE_CONNECT_CLOSED | Constante |
protected static const CODE_CONNECT_CLOSED:String = "Connect.Closed"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Status code for connection closed.
CODE_CONNECT_FAILED | Constante |
protected static const CODE_CONNECT_FAILED:String = "Connect.Failed"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Status code for connection failed.
CODE_CONNECT_NETWORKCHANGE | Constante |
protected static const CODE_CONNECT_NETWORKCHANGE:String = "Connect.NetworkChange"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Status code for connection network change.
CODE_CONNECT_REJECTED | Constante |
protected static const CODE_CONNECT_REJECTED:String = "Connect.Rejected"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Status code for connection rejected.
CODE_CONNECT_SUCCESS | Constante |
protected static const CODE_CONNECT_SUCCESS:String = "Connect.Success"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Status code for connection success.
Tue Jun 12 2018, 02:12 PM Z