Stream

The Stream class is the foundation of a com.haishinkit.rtmp.RtmpStream.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard

Specifies the audio codec settings.

Link copied to clipboard

The source of the media data object.

Link copied to clipboard
open override var hasAudio: Boolean

Whether audio source is enabled or not.

Link copied to clipboard
open override var hasVideo: Boolean

Whether video source is enabled or not.

Link copied to clipboard
Link copied to clipboard
open override val screen: Screen

The offscreen renderer for video output.

Link copied to clipboard

Specifies the video codec settings.

Functions

Link copied to clipboard
open override fun append(buffer: MediaBuffer)

Invoked immediately after capture data.

Link copied to clipboard
abstract fun close()

Closes the stream from the server.

Link copied to clipboard
open fun dispose()

Disposes the stream of memory management.

Link copied to clipboard
open override fun onSurfaceChanged(surface: Surface?)
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)

Registers an output instance.

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

Unregisters an output instance.