docs/doc/reference/com/google/android/exoplayer2/drm/DefaultDrmSessionManagerProvider.html
Package com.google.android.exoplayer2.drm
All Implemented Interfaces:DrmSessionManagerProvider
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultDrmSessionManagerProviderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DrmSessionManagerProvider](DrmSessionManagerProvider.html "interface in com.google.android.exoplayer2.drm")
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 of DrmSessionManagerProvider.
Constructors | Constructor | Description |
| --- | --- |
| DefaultDrmSessionManagerProvider() |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| DrmSessionManager | get(MediaItem mediaItem) |
Deprecated.
Returns a DrmSessionManager for the given media item.
|
| void | setDrmHttpDataSourceFactory(DataSource.Factory drmDataSourceFactory) |
Deprecated.
Sets the DataSource.Factory which is used to create HttpMediaDrmCallback instances.
|
| void | setDrmUserAgent(String userAgent) |
Deprecated.
Pass a custom DataSource.Factory to setDrmHttpDataSourceFactory(DataSource.Factory) which sets the desired user agent on outgoing requests.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public DefaultDrmSessionManagerProvider()
Deprecated.
-
public void setDrmHttpDataSourceFactory(@Nullable[DataSource.Factory](../upstream/DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")drmDataSourceFactory)
Deprecated.
Sets the DataSource.Factory which is used to create HttpMediaDrmCallback instances. If null is passed a DefaultHttpDataSource.Factory is used.
Parameters:drmDataSourceFactory - The data source factory or null to use DefaultHttpDataSource.Factory.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void setDrmUserAgent(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")userAgent)
Deprecated.
Pass a custom DataSource.Factory to setDrmHttpDataSourceFactory(DataSource.Factory) which sets the desired user agent on outgoing requests.
-
public[DrmSessionManager](DrmSessionManager.html "interface in com.google.android.exoplayer2.drm")get([MediaItem](../MediaItem.html "class in com.google.android.exoplayer2")mediaItem)
Deprecated.
Description copied from interface: DrmSessionManagerProvider
Returns a DrmSessionManager for the given media item.
The caller is responsible for preparing the DrmSessionManager before use, and subsequently releasing it.
Specified by:get in interface DrmSessionManagerProvider