Package com.castlabs.android.player

# Class DefaultVideoCodecAdapterFactory

java.lang.Object
com.castlabs.android.player.DefaultVideoCodecAdapterFactory

All Implemented Interfaces:
  `com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory`

public final class DefaultVideoCodecAdapterFactory extends Object implements com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory
Default implementation of `MediaCodecAdapter.Factory` that uses `DefaultMediaCodecAdapterFactory` to create `MediaCodecAdapter` instances.

- ## Field Summary

  ### Fields inherited from interface com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory

  `DEFAULT`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultVideoCodecAdapterFactory()`
  Creates a new instance of `DefaultVideoCodecAdapterFactory`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `com.google.android.exoplayer2.mediacodec.MediaCodecAdapter`
  `createAdapter(com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Configuration configuration)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultVideoCodecAdapterFactory

    public DefaultVideoCodecAdapterFactory()
    Creates a new instance of `DefaultVideoCodecAdapterFactory`. The constructor initializes a delegate `DefaultMediaCodecAdapterFactory` and configures it based on the settings in `PlayerSDK`.

- ## Method Details

  - ### createAdapter

    @NonNull public com.google.android.exoplayer2.mediacodec.MediaCodecAdapter createAdapter(@NonNull com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Configuration configuration) throws IOException
    Specified by:
      `createAdapter` in interface `com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory`
    Throws:
      `IOException`