Properties

Link copied to clipboard
abstract val audioCodecConfigFlow: StateFlow<AudioCodecConfig?>

The audio configuration flow.

Link copied to clipboard
abstract val audioEncoder: IEncoder?

Advanced settings for the audio encoder.

Link copied to clipboard
abstract val audioSourceConfigFlow: StateFlow<AudioSourceConfig?>

The audio configuration flow.

Link copied to clipboard
abstract val endpoint: IEndpoint

Advanced settings for the endpoint.

Link copied to clipboard
abstract val isOpenFlow: StateFlow<Boolean>

Returns true if output is opened. For example, if the streamer is connected to a server if the endpoint is SRT or RTMP.

Link copied to clipboard

Whether the output is streaming.

Link copied to clipboard
abstract val isStreamingFlow: StateFlow<Boolean>

Returns true if stream is running.

Link copied to clipboard
abstract val throwableFlow: StateFlow<Throwable?>

Returns the last throwable that occurred.

Link copied to clipboard
abstract val videoCodecConfigFlow: StateFlow<VideoCodecConfig?>

The video configuration flow.

Link copied to clipboard
abstract val videoEncoder: IEncoder?

Advanced settings for the video encoder.

Link copied to clipboard
abstract val videoSourceConfigFlow: StateFlow<VideoSourceConfig?>

The video configuration flow.

Link copied to clipboard
abstract val withAudio: Boolean

Whether the output has audio.

Link copied to clipboard
abstract val withVideo: Boolean

Whether the output has video.

Functions

Link copied to clipboard

Adds a bitrate regulator controller to the streamer.

Link copied to clipboard
abstract suspend fun close()

Closes the streamer endpoint.

Link copied to clipboard
abstract suspend fun open(descriptor: MediaDescriptor)

Opens the streamer endpoint.

Link copied to clipboard
suspend fun IOpenableStreamer.open(uri: Uri)
suspend fun IOpenableStreamer.open(uriString: String)

Opens the streamer endpoint.

Link copied to clipboard
abstract suspend fun release()

Clean and reset the streamer.

Link copied to clipboard

Clean and reset the streamer synchronously.

Clean and reset the output synchronously.

Link copied to clipboard

Removes the bitrate regulator controller from the streamer.

Link copied to clipboard
abstract suspend fun setAudioCodecConfig(audioCodecConfig: AudioCodecConfig)

Configures only audio codec settings.

Link copied to clipboard
abstract suspend fun setTargetRotation(rotation: Int)

Sets the target rotation.

Link copied to clipboard
abstract suspend fun setVideoCodecConfig(videoCodecConfig: VideoCodecConfig)

Configures only video codec settings.

Link copied to clipboard
abstract suspend fun startStream()

Starts audio/video stream.

Link copied to clipboard
suspend fun IOpenableStreamer.startStream(uriString: String)

Starts audio/video stream.

Link copied to clipboard
abstract suspend fun stopStream()

Stops audio/video stream.