mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add prepare and release to DrmSessionManager
The added methods will manage ExoMediaDrms instances. Issue:#4721 PiperOrigin-RevId: 270335916
This commit is contained in:
parent
1feb03db2d
commit
7fc9c848c6
1 changed files with 15 additions and 0 deletions
|
|
@ -78,6 +78,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}.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue