public interface MediaProcessor
Interface for classes that provide media processing. Media processing can consist of any digital media processing. Common cases include video transcoding, image scaling, etc. In general, this interface allows processing any files, not just audio-visual media.
MediaProcessor can be initialized and requested by different media processing provider names. This interface defines provider names for the following common cases:
#PROCESSOR_MEDIA_DEFAULT: Media processing provider that is primarily used for creating one output media from one input media, e.g. for video transcoding and thumbnail creation.
PROCESSOR_USER_GENERATED_CONTENT: Media processing provider that is the first-line handler for user generated content (uploads etc.). This provider typically produces several output media from the media received from end users.
It is recommended that these provider names are used for these use cases, and that MediaProcessingProvider implementations support at least the default and user generated content processing use cases.
MediaProcessingJob can request a provider implementation to perform synchronous or asynchronous processing. Since media processing is CPU intensive in many cases, MediaProcessingProvider implementations are encouraged to implement asynchronous processing, and possibly queuing requested jobs.
|Modifier and Type||Field and Description|
Name for default media processing provider that is primarily used for creating one output media from one input media, e.g.
Name for media processing provider that is the first-line handler for user generated content (uploads etc.).
static final String PROCESSOR_NAME_DEFAULT
static final String PROCESSOR_USER_GENERATED_CONTENT
Copyright © 2017. All rights reserved.