Class OpusLibrary

  • @Deprecated
    public final class OpusLibrary
    extends Object
    Deprecated. is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Configures and queries the underlying native library.
    • Method Detail

      • setLibraries

        public static void setLibraries​( int cryptoType,
                                        String... libraries)
        Override the names of the Opus 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 LibopusAudioRenderer instance.
        cryptoType - The C.CryptoType for which the decoder library supports decrypting protected content, or C.CRYPTO_TYPE_UNSUPPORTED if the library does not support decryption.
        libraries - The names of the Opus 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.
      • supportsCryptoType

        public static boolean supportsCryptoType​( int cryptoType)
        Returns whether the library supports the given C.CryptoType.
      • opusGetVersion

        public static String opusGetVersion()
      • opusIsSecureDecodeSupported

        public static boolean opusIsSecureDecodeSupported()