StreamIngest

interface StreamIngest

Types

Link copied to clipboard
class Factory(context: Context, streamConfig: StreamConfig) : StreamIngestFactory

Properties

Link copied to clipboard
abstract val error: Flow<Exception>

A flow that emits the error occurred during the streaming process.

Link copied to clipboard
abstract val streamStatus: Flow<StreamState>

A flow that emits the current state of the streaming process.

Functions

Link copied to clipboard
abstract fun mutedAudio(isMute: Boolean)

Mutes or unmutes the audio stream based on the given flag.

Link copied to clipboard
abstract fun mutedVideo(isMute: Boolean)

Mutes or unmutes the video stream based on the given flag.

Link copied to clipboard
abstract fun onConfigChanged()

Called when the configuration of the view changes.

Link copied to clipboard
abstract fun registerFilter(filters: List<BeautyFilter>)

Register a list of beauty filters.

Link copied to clipboard
abstract fun release()

Releases resources associated with the streaming process.

Link copied to clipboard
abstract fun setStreamQuality(streamQuality: StreamQuality)

Set the stream quality for the ongoing streaming process. Make sure this setting must be called before StreamIngest object assign to the view.

Link copied to clipboard
abstract fun startCameraPreview()

Starts the camera preview for the ongoing streaming process.

Link copied to clipboard
abstract fun startStream(rtmpUrl: String, streamKey: String)

Starts the streaming process with the provided RTMP URL.

Link copied to clipboard
abstract fun stopCameraPreview()

Stops the camera preview for the ongoing streaming process.

Link copied to clipboard
abstract fun stopStream()

Stops the ongoing streaming process.

Link copied to clipboard
abstract fun switchCamera()

Switches the camera for the ongoing streaming process.

Link copied to clipboard
abstract fun unregisterFilter(filters: List<BeautyFilter>)

Unregister a list of beauty filters.