public interface

DrmSessionManager.DrmSessionReference

 androidx.media3.exoplayer.drm.DrmSessionManager.DrmSessionReference

Overview

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

Summary

Fields
public static final DrmSessionManager.DrmSessionReferenceEMPTY

A reference that is never populated with an underlying DrmSession.

Methods
public voidrelease()

Releases the underlying session at most once.

Fields

public static final DrmSessionManager.DrmSessionReference EMPTY

A reference that is never populated with an underlying DrmSession.

Methods

public 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.