Pacote | mx.messaging.channels |
Classe | public class RTMPChannel |
Herança | RTMPChannel NetConnectionChannel PollingChannel Channel EventDispatcher Object |
Subclasses | SecureRTMPChannel |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de 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.
Propriedade | Definido por | ||
---|---|---|---|
authenticated : Boolean [somente leitura]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [somente leitura]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [somente leitura]
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
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
endpoint : String [somente leitura]
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 [somente leitura]
Provides access to the associated NetConnection for this Channel. | NetConnectionChannel | ||
protocol : String [substituir] [somente leitura]
Returns the protocol for this channel (rtmp or rtmpt). | RTMPChannel | ||
reconnecting : Boolean [somente leitura]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [somente leitura]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [somente leitura]
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 um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um 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 | ||
Envia um evento para o fluxo de eventos. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Sends a CommandMessage to the server to logout if the Channel is connected. | Channel | ||
[substituir]
Do nothing if the client requests that we poll. | RTMPChannel | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | ||
[substituir]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna a representação de string do objeto especificado. | Object | ||
Retorna o valor primitivo do objeto especificado. | Object | ||
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | EventDispatcher |
Constante | Definido por | ||
---|---|---|---|
CODE_CONNECT_CLOSED : String = "Connect.Closed" [estático]
Status code for connection closed. | RTMPChannel | ||
CODE_CONNECT_FAILED : String = "Connect.Failed" [estático]
Status code for connection failed. | RTMPChannel | ||
CODE_CONNECT_NETWORKCHANGE : String = "Connect.NetworkChange" [estático]
Status code for connection network change. | RTMPChannel | ||
CODE_CONNECT_REJECTED : String = "Connect.Rejected" [estático]
Status code for connection rejected. | RTMPChannel | ||
CODE_CONNECT_SUCCESS : String = "Connect.Success" [estático]
Status code for connection success. | RTMPChannel |
protocol | propriedade |
protocol:String
[somente leitura] [substituir] Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Returns the protocol for this channel (rtmp or rtmpt).
Implementação
override public function get protocol():String
RTMPChannel | () | Construtor |
public function RTMPChannel(id:String = null, uri:String = null)
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Status code for connection closed.
CODE_CONNECT_FAILED | Constante |
protected static const CODE_CONNECT_FAILED:String = "Connect.Failed"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Status code for connection failed.
CODE_CONNECT_NETWORKCHANGE | Constante |
protected static const CODE_CONNECT_NETWORKCHANGE:String = "Connect.NetworkChange"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Status code for connection rejected.
CODE_CONNECT_SUCCESS | Constante |
protected static const CODE_CONNECT_SUCCESS:String = "Connect.Success"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Status code for connection success.
Wed Jun 13 2018, 11:10 AM Z