RtmpConnection
Manages a two-way RTMP or RTMPS connection to a server application.
connect starts an asynchronous connection attempt. Listen for Event.RTMP_STATUS and Event.IO_ERROR to observe the result. A connection can own multiple RtmpStream instances.
Types
Properties
Elapsed time in milliseconds from queuing C0/C1 to receiving the full S2 packet. This includes local queuing and server processing time. It is null until the handshake completes and is reset when the next connection attempt starts.
Whether the RTMP handshake has completed and the connection has not been closed.
The total number of bytes received by the underlying socket.
The total number of bytes sent by the underlying socket.
Functions
Registers a listener for an event name and capture flag.
Registers a listener with capture disabled.
Delivers an event to the matching listeners.
Creates and dispatches an event with the given name, bubbling flag, and payload.
Creates and dispatches a non-bubbling event without a payload.
Creates and dispatches an event without a payload.
Unregisters a listener using the event name and capture flag supplied during registration.
Unregisters a listener registered with capture disabled.