IStreamer

interface IStreamer(source)

A streamer based on coroutines.

Inheritors

Properties

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.

Functions

Link copied to clipboard
abstract suspend fun release()

Clean and reset the streamer.

Link copied to clipboard
fun IStreamer.releaseBlocking(dispatcher: CoroutineDispatcher = Dispatchers.Default)

Clean and reset the streamer synchronously.

Link copied to clipboard
abstract suspend fun startStream()

Starts audio/video stream.

Link copied to clipboard
abstract suspend fun stopStream()

Stops audio/video stream.