RtmpStream

class RtmpStream(context: Context, connection: RtmpConnection) : Stream, IEventDispatcher

An object that provides the interface to control a one-way channel over a RtmpConnection.

Constructors

Link copied to clipboard
constructor(context: Context, connection: RtmpConnection)

Types

Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
data class Info(var resourceName: String? = null)
Link copied to clipboard
interface Listener

Properties

Link copied to clipboard

Specifies the audio codec settings.

Link copied to clipboard

The current audio source object.

Link copied to clipboard
Link copied to clipboard

Specifies the stream name used for FMLE-compatible sequences.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Incoming audio plays on the stream or not.

Link copied to clipboard

Incoming video plays on the stream or not.

Link copied to clipboard

The offscreen renderer for video output.

Link copied to clipboard

Specifies the videoEffect such as a monochrome, a sepia.

Link copied to clipboard

Specifies the video codec settings.

Link copied to clipboard

The current video source object.

Link copied to clipboard

Specifies the StreamView object.

Functions

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

open override fun addEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Registers the event listeners on the event target.

Link copied to clipboard

Attaches an audio stream to a Stream.

Link copied to clipboard

Attaches a video stream to a Stream.

Link copied to clipboard
open override fun close()

Closes the stream from the server.

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

Dispatches the events into the implementations event model.

Link copied to clipboard
open fun dispatchEventWith(type: String)

Dispatches the events into the implementations event model.

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

Disposes the stream of memory management.

Link copied to clipboard
fun play(vararg arguments: Any)

Plays a media file or a live stream from server.

Link copied to clipboard
fun publish(name: String?, howToPublish: RtmpStream.HowToPublish = HowToPublish.LIVE)

Sends streaming audio, video and data messages from a client to server.

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

open override fun removeEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Unregister the event listeners on the event target.

Link copied to clipboard
fun send(handlerName: String, vararg arguments: Any)

Sends a message on a published stream.