RtmpConnection

An object that creates a two-way RTMP connection.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

NetStatusEvent#info.code for RtmpConnection

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies the outgoing RTMPChunkSize.

Link copied to clipboard

Specifies the name of application.

Link copied to clipboard

This instance connected to server(true) or not(false).

Link copied to clipboard

Specifies the URL of an HTTP referer.

Link copied to clipboard

Specifies the URL of .swf.

Link copied to clipboard

Specifies the time to wait for TCP/IP Handshake done.

Link copied to clipboard

The statistics of total incoming bytes.

Link copied to clipboard

The statistics of total outgoing bytes.

Link copied to clipboard
var uri: URI?

The URI passed to the RTMPConnection.connect() method.

Functions

Link copied to clipboard
open override fun addEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Registers the event listeners on the event target.

open fun addEventListener(type: String, listener: IEventListener)
Link copied to clipboard
fun call(commandName: String, responder: Responder?, vararg arguments: Any)

Calls a command or method on RTMP Server.

Link copied to clipboard
fun close()

Closes the connection from the server.

Link copied to clipboard
fun connect(command: String, vararg arguments: Any?)

Creates a two-way connection to an application on RTMP Server.

Link copied to clipboard
open override fun dispatchEvent(event: Event)

Dispatches the events into the implementations event model.

Link copied to clipboard
open override fun dispatchEventWith(type: String, bubbles: Boolean, data: Any?)
open fun dispatchEventWith(type: String, bubbles: Boolean)

open fun dispatchEventWith(type: String)

Dispatches the events into the implementations event model.

Link copied to clipboard
fun dispose()

Dispose the connection for a memory management.

Link copied to clipboard
open override fun removeEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Unregister the event listeners on the event target.

open fun removeEventListener(type: String, listener: IEventListener)