Media

object Media

The Media class is responsible for managing various aspects related to media processing, playback, and capture.

Properties

Link copied to clipboard

Returns a list of the various AudioPlayback devices available. The possible AudioPlayback types are:

Link copied to clipboard

Returns a list of available audio sources. The possible AudioSource types are:

Link copied to clipboard
val eglBaseContext: EglBase.Context

Returns the instance of the EGL context shared amongst the SDK and its components.

Link copied to clipboard

Checks whether the Camera2 Android package is supported on a device.

Link copied to clipboard

Returns a list of all audio codecs that are available through the SDK.

Link copied to clipboard

Returns a list of all video codecs that are available through the SDK.

Link copied to clipboard
val videoDecoderFactory: VideoDecoderFactory

Returns a factory for creating video decoder instances.

Link copied to clipboard
val videoEncoderFactory: VideoEncoderFactory

Returns a factory for creating video encoder instances.

Link copied to clipboard
val videoSources: List<VideoSource>

Returns the list of the various video sources available on the current device. The possible VideoSource types are:

Functions

Link copied to clipboard
inline fun <T : AudioPlayback> audioPlayback(): List<T>

Returns a list of available audio playback devices matching the given class. The possible AudioPlayback types are:

Link copied to clipboard
inline fun <T : AudioSource> audioSources(): List<T>

Returns a list of available audio sources matching the given class. The possible AudioSource types are:

Link copied to clipboard
inline fun <T : VideoSource> videoSources(): List<T>

Returns a list of available video sources matching the given class. The possible VideoSource types are: