Input

interface Input

Defines the media input model that is available to be read from by the processor.

Types

Link copied to clipboard
sealed class Requirements

Defines all possible requirements to Media items that MediaProcessor expects to be satisfied by provided Result.

Link copied to clipboard
sealed class Result

Defines all results accepted by MediaProcessor.

Functions

Link copied to clipboard

Subscribes to the provided onResult to be notified when a new Result is available for this input. The subscriber specifies its Requirements that must be taken into account when selecting media items to pass as a Result to make sure that subscriber receives expected media data. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.