Class ExoMediaDrm.AppManagedProvider
- java.lang.Object
-
- com.google.android.exoplayer2.drm.ExoMediaDrm.AppManagedProvider
-
- All Implemented Interfaces:
ExoMediaDrm.Provider
- Enclosing interface:
- ExoMediaDrm
public static final class ExoMediaDrm.AppManagedProvider extends Object implements ExoMediaDrm.Provider
Provides anExoMediaDrm
instance owned by the app.Note that when using this provider the app will have instantiated the
ExoMediaDrm
instance, and remains responsible for callingExoMediaDrm.release()
on the instance when it's no longer being used.
-
-
Constructor Summary
Constructors Constructor Description AppManagedProvider(ExoMediaDrm exoMediaDrm)
Creates an instance that provides the givenExoMediaDrm
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExoMediaDrm
acquireExoMediaDrm(UUID uuid)
Returns anExoMediaDrm
instance with an incremented reference count.
-
-
-
Constructor Detail
-
AppManagedProvider
public AppManagedProvider(ExoMediaDrm exoMediaDrm)
Creates an instance that provides the givenExoMediaDrm
.
-
-
Method Detail
-
acquireExoMediaDrm
public ExoMediaDrm acquireExoMediaDrm(UUID uuid)
Description copied from interface:ExoMediaDrm.Provider
Returns anExoMediaDrm
instance with an incremented reference count. When the caller no longer needs the instance, it must callExoMediaDrm.release()
to decrement the reference count.- Specified by:
acquireExoMediaDrm
in interfaceExoMediaDrm.Provider
-
-