Back to Exoplayer

DrmSessionManager.DrmSessionReference (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/DrmSessionManager.DrmSessionReference.html

latest1.6 KB
Original Source

Package com.google.android.exoplayer2.drm

Interface DrmSessionManager.DrmSessionReference


public static interfaceDrmSessionManager.DrmSessionReference

Represents a single reference count of a DrmSession, while deliberately not giving access to the underlying session.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static DrmSessionManager.DrmSessionReference | EMPTY | A reference that is never populated with an underlying DrmSession. |

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | release() | Releases the underlying session at most once. |

Field Detail

- 

EMPTY

static final[DrmSessionManager.DrmSessionReference](DrmSessionManager.DrmSessionReference.html "interface in com.google.android.exoplayer2.drm")EMPTY

A reference that is never populated with an underlying DrmSession.

Method Detail

- 

release

void release()

Releases the underlying session at most once.

Can be called from any thread. Calling this method more than once will only release the underlying session once.