Package-level declarations

Types

Link copied to clipboard
interface Configurable<T>
Link copied to clipboard
interface ISnapshotable

An interface to take a snapshot of the current video frame.

Link copied to clipboard
interface Releasable
Link copied to clipboard
interface Streamable
Link copied to clipboard
Link copied to clipboard

Same as Configurable but with suspend functions.

Link copied to clipboard

Same as Releasable but with suspend functions.

Link copied to clipboard

Same as Streamable but with suspend functions.

Functions

Link copied to clipboard
suspend fun ISnapshotable.takeJpegSnapshot(outputStream: OutputStream, @IntRange(from = 0, to = 100) quality: Int = 100, @IntRange(from = 0, to = 359) rotationDegrees: Int = 0)

Takes a snapshot of the current video frame.

suspend fun ISnapshotable.takeJpegSnapshot(file: File, @IntRange(from = 0, to = 100) quality: Int = 100, @IntRange(from = 0, to = 359) rotationDegrees: Int = 0, dispatcher: CoroutineDispatcher = Dispatchers.IO)
suspend fun ISnapshotable.takeJpegSnapshot(filePathString: String, @IntRange(from = 0, to = 100) quality: Int = 100, @IntRange(from = 0, to = 359) rotationDegrees: Int = 0, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Takes a JPEG snapshot of the current video frame.