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.
  • 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