Class SynchronousMediaCodecAdapter.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.mediacodec.SynchronousMediaCodecAdapter.Factory
-
- All Implemented Interfaces:
MediaCodecAdapter.Factory
- Enclosing class:
- SynchronousMediaCodecAdapter
public static class SynchronousMediaCodecAdapter.Factory extends Object implements MediaCodecAdapter.Factory
A factory forSynchronousMediaCodecAdapter
instances.
-
-
Field Summary
-
Fields inherited from interface com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaCodecAdapter
createAdapter(MediaCodecAdapter.Configuration configuration)
Creates aMediaCodecAdapter
instance.protected MediaCodec
createCodec(MediaCodecAdapter.Configuration configuration)
Creates a newMediaCodec
instance.
-
-
-
Method Detail
-
createAdapter
public MediaCodecAdapter createAdapter(MediaCodecAdapter.Configuration configuration) throws IOException
Description copied from interface:MediaCodecAdapter.Factory
Creates aMediaCodecAdapter
instance.- Specified by:
createAdapter
in interfaceMediaCodecAdapter.Factory
- Throws:
IOException
-
createCodec
protected MediaCodec createCodec(MediaCodecAdapter.Configuration configuration) throws IOException
Creates a newMediaCodec
instance.- Throws:
IOException
-
-