public interface

MediaCodecAdapter.Factory

 androidx.media3.exoplayer.mediacodec.MediaCodecAdapter.Factory

Subclasses:

SynchronousMediaCodecAdapter.Factory, DefaultMediaCodecAdapterFactory

Overview

A factory for MediaCodecAdapter instances.

Summary

Fields
public static final MediaCodecAdapter.FactoryDEFAULT

Methods
public MediaCodecAdaptercreateAdapter(MediaCodecAdapter.Configuration configuration)

Creates a MediaCodecAdapter instance.

public static MediaCodecAdapter.FactorygetDefault(Context context)

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

Fields

public static final MediaCodecAdapter.Factory DEFAULT

Deprecated: Use MediaCodecAdapter.Factory.getDefault(Context) instead.

Methods

public static MediaCodecAdapter.Factory getDefault(Context context)

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

Parameters:

context: A .

Returns:

The default factory.

public MediaCodecAdapter createAdapter(MediaCodecAdapter.Configuration configuration)

Creates a MediaCodecAdapter instance.