Package com.castlabs.sdk.oma

# 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 Summary

  Constructors
  Constructor
  Description
  `FormatUtil()`
  Default constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static MediaFormat`
  `getFrameworkMediaFormatV16(com.google.android.exoplayer2.Format f)`
  Returns a `MediaFormat` representation of the provided format.

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

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

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