Class FormatUtil

java.lang.Object
com.castlabs.sdk.oma.FormatUtil

public class FormatUtil extends Object
Utility class for converting ExoPlayer Format objects to Android MediaFormat objects.
  • Constructor Details

    • FormatUtil

      public FormatUtil()
      Default constructor.
  • Method Details

    • getFrameworkMediaFormatV16

      public static MediaFormat getFrameworkMediaFormatV16(com.google.android.exoplayer2.Format f)
      Returns a MediaFormat representation of the provided format.
      Parameters:
      f - the format from which to build the MediaFormat
      Returns:
      The MediaFormat representation of the provided format.