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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies the stream name used for FMLE-compatible sequences.

Link copied to clipboard
open override var hasAudio: Boolean
Link copied to clipboard
open override var hasVideo: Boolean
Link copied to clipboard
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
open override val screen: Screen
Link copied to clipboard

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
open override fun append(buffer: MediaBuffer)
Link copied to clipboard
open override fun close()
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
open override fun dispose()
Link copied to clipboard
open override fun onSurfaceChanged(surface: Surface?)
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
fun queueOutputBuffer(type: MediaType, index: Int, payload: ByteBuffer?, timestamp: Long, sync: Boolean)
Link copied to clipboard
open override fun registerOutput(output: MediaOutput)
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)
Link copied to clipboard
fun send(handlerName: String, vararg arguments: Any)

Sends a message on a published stream.

Link copied to clipboard
open override fun unregisterOutput(output: MediaOutput)