Class OpusLibrary
- java.lang.Object
-
- com.google.android.exoplayer2.ext.opus.OpusLibrary
-
@Deprecated public final class OpusLibrary extends Object
Deprecated.com.google.android.exoplayer2 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 Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getVersion()
Deprecated.Returns the version of the underlying library if available, or null otherwise.static boolean
isAvailable()
Deprecated.Returns whether the underlying library is available, loading it if necessary.static String
opusGetVersion()
Deprecated.static boolean
opusIsSecureDecodeSupported()
Deprecated.static void
setLibraries(@com.google.android.exoplayer2.C.CryptoType int cryptoType, String... libraries)
Deprecated.Override the names of the Opus native libraries.static boolean
supportsCryptoType(@com.google.android.exoplayer2.C.CryptoType int cryptoType)
Deprecated.Returns whether the library supports the givenC.CryptoType
.
-
-
-
Method Detail
-
setLibraries
public static void setLibraries(@com.google.android.exoplayer2.C.CryptoType int cryptoType, String... libraries)
Deprecated.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 aLibopusAudioRenderer
instance.- Parameters:
cryptoType
- TheC.CryptoType
for which the decoder library supports decrypting protected content, orC.CRYPTO_TYPE_UNSUPPORTED
if the library does not support decryption.libraries
- The names of the Opus native libraries.
-
isAvailable
public static boolean isAvailable()
Deprecated.Returns whether the underlying library is available, loading it if necessary.
-
getVersion
@Nullable public static String getVersion()
Deprecated.Returns the version of the underlying library if available, or null otherwise.
-
supportsCryptoType
public static boolean supportsCryptoType(@com.google.android.exoplayer2.C.CryptoType int cryptoType)
Deprecated.Returns whether the library supports the givenC.CryptoType
.
-
opusGetVersion
public static String opusGetVersion()
Deprecated.
-
opusIsSecureDecodeSupported
public static boolean opusIsSecureDecodeSupported()
Deprecated.
-
-