Class DefaultDrmSessionManagerProvider
- java.lang.Object
-
- com.google.android.exoplayer2.drm.DefaultDrmSessionManagerProvider
-
- All Implemented Interfaces:
DrmSessionManagerProvider
@Deprecated public final class DefaultDrmSessionManagerProvider extends Object implements DrmSessionManagerProvider
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Default implementation ofDrmSessionManagerProvider
.
-
-
Constructor Summary
Constructors Constructor Description DefaultDrmSessionManagerProvider()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DrmSessionManager
get(MediaItem mediaItem)
Deprecated.Returns aDrmSessionManager
for the given media item.void
setDrmHttpDataSourceFactory(DataSource.Factory drmDataSourceFactory)
Deprecated.Sets theDataSource.Factory
which is used to createHttpMediaDrmCallback
instances.void
setDrmUserAgent(String userAgent)
Deprecated.Pass a customDataSource.Factory
tosetDrmHttpDataSourceFactory(DataSource.Factory)
which sets the desired user agent on outgoing requests.
-
-
-
Method Detail
-
setDrmHttpDataSourceFactory
public void setDrmHttpDataSourceFactory(@Nullable DataSource.Factory drmDataSourceFactory)
Deprecated.Sets theDataSource.Factory
which is used to createHttpMediaDrmCallback
instances. Ifnull
is passed aDefaultHttpDataSource.Factory
is used.- Parameters:
drmDataSourceFactory
- The data source factory ornull
to useDefaultHttpDataSource.Factory
.
-
setDrmUserAgent
@Deprecated public void setDrmUserAgent(@Nullable String userAgent)
Deprecated.Pass a customDataSource.Factory
tosetDrmHttpDataSourceFactory(DataSource.Factory)
which sets the desired user agent on outgoing requests.
-
get
public DrmSessionManager get(MediaItem mediaItem)
Deprecated.Description copied from interface:DrmSessionManagerProvider
Returns aDrmSessionManager
for the given media item.The caller is responsible for
preparing
theDrmSessionManager
before use, and subsequentlyreleasing
it.- Specified by:
get
in interfaceDrmSessionManagerProvider
-
-