Package-level declarations

Types

Link copied to clipboard
data class DispatcherProvider(val audioThreadPriority: Int = Process.THREAD_PRIORITY_AUDIO, val videoThreadPriority: Int = defaultVideoPriorityValue) : IDispatcherProvider

A default implementation of IDispatcherProvider.

Link copied to clipboard

Provides CoroutineDispatchers for audio elements.

Link copied to clipboard

Provides CoroutineDispatchers for pipelines and its elements.

Link copied to clipboard

Provides CoroutineDispatchers for video elements.

Link copied to clipboard
open class StreamerPipeline(val context: Context, val withAudio: Boolean = true, val withVideo: Boolean = true, audioOutputMode: StreamerPipeline.AudioOutputMode = AudioOutputMode.PUSH, surfaceProcessorFactory: ISurfaceProcessorInternal.Factory = DefaultSurfaceProcessorFactory(), val dispatcherProvider: IDispatcherProvider = DispatcherProvider()) : IWithVideoSource, IWithVideoRotation, IWithAudioSource, IStreamer

The main pipeline for the streamer.

Functions

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

Clean and reset the pipeline synchronously.