Commit 7fc9c848 by aquilescanta Committed by Oliver Woodman

Add prepare and release to DrmSessionManager

The added methods will manage ExoMediaDrms instances.

Issue:#4721
PiperOrigin-RevId: 270335916
parent 1feb03db
...@@ -79,6 +79,21 @@ public interface DrmSessionManager<T extends ExoMediaCrypto> { ...@@ -79,6 +79,21 @@ public interface DrmSessionManager<T extends ExoMediaCrypto> {
int FLAG_PLAY_CLEAR_SAMPLES_WITHOUT_KEYS = 1; int FLAG_PLAY_CLEAR_SAMPLES_WITHOUT_KEYS = 1;
/** /**
* Acquires any required resources.
*
* <p>{@link #release()} must be called to ensure the acquired resources are released. After
* releasing, an instance may be re-prepared.
*/
default void prepare() {
// Do nothing.
}
/** Releases any acquired resources. */
default void release() {
// Do nothing.
}
/**
* Returns whether the manager is capable of acquiring a session for the given * Returns whether the manager is capable of acquiring a session for the given
* {@link DrmInitData}. * {@link DrmInitData}.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment