Class VpxLibrary

  • public final class VpxLibrary
    extends Object
    Configures and queries the underlying native library.
    • Method Detail

      • setLibraries

        public static void setLibraries​(Class<? extends ExoMediaCrypto> exoMediaCryptoType,
                                        String... libraries)
        Override the names of the Vpx native libraries. If an application wishes to call this method, it must do so before calling any other method defined by this class, and before instantiating a LibvpxVideoRenderer instance.
        exoMediaCryptoType - The ExoMediaCrypto type required for decoding protected content.
        libraries - The names of the Vpx native libraries.
      • isAvailable

        public static boolean isAvailable()
        Returns whether the underlying library is available, loading it if necessary.
      • getVersion

        public static String getVersion()
        Returns the version of the underlying library if available, or null otherwise.
      • getBuildConfig

        public static String getBuildConfig()
        Returns the configuration string with which the underlying library was built if available, or null otherwise.
      • isHighBitDepthSupported

        public static boolean isHighBitDepthSupported()
        Returns true if the underlying libvpx library supports high bit depth.
      • matchesExpectedExoMediaCryptoType

        public static boolean matchesExpectedExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType)
        Returns whether the given ExoMediaCrypto type matches the one required for decoding protected content.
      • vpxIsSecureDecodeSupported

        public static boolean vpxIsSecureDecodeSupported()