MediaCodecAdapter.Factory


public interface MediaCodecAdapter.Factory


A factory for MediaCodecAdapter instances.

Summary

Constants

default static final MediaCodecAdapter.Factory

This field is deprecated.

Use getDefault instead.

Public methods

abstract MediaCodecAdapter

Creates a MediaCodecAdapter instance.

default static MediaCodecAdapter.Factory

Returns the default factory that should be used in most cases.

Constants

DEFAULT

default static final MediaCodecAdapter.Factory DEFAULT

Public methods

createAdapter

abstract MediaCodecAdapter createAdapter(MediaCodecAdapter.Configuration configuration)

Creates a MediaCodecAdapter instance.

getDefault

default static MediaCodecAdapter.Factory getDefault(Context context)

Returns the default factory that should be used in most cases.

Parameters
Context context

A Context.

Returns
MediaCodecAdapter.Factory

The default factory.