mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Don't call MediaItem.Builder#setKeySetId without setting the DRM UUID
This is known to silently drop the value. This setter is now deprecated in favour of `MediaItem.Builder#setDrmConfiguration(MediaItem.DrmConfiguration)`, which requires a UUID in order to construct the `DrmConfiguration` instance. Issue: #9378 tracks correctly propagating the DRM info out of `DownloadRequest#toMediaItem`. PiperOrigin-RevId: 397291013
This commit is contained in:
parent
13827186aa
commit
04943db71c
2 changed files with 0 additions and 2 deletions
|
|
@ -98,7 +98,6 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
|
|||
.setUri(request.uri)
|
||||
.setStreamKeys(request.streamKeys)
|
||||
.setCustomCacheKey(request.customCacheKey)
|
||||
.setDrmKeySetId(request.keySetId)
|
||||
.build();
|
||||
try {
|
||||
return constructor.newInstance(mediaItem, cacheDataSourceFactory, executor);
|
||||
|
|
|
|||
|
|
@ -229,7 +229,6 @@ public final class DownloadRequest implements Parcelable {
|
|||
.setCustomCacheKey(customCacheKey)
|
||||
.setMimeType(mimeType)
|
||||
.setStreamKeys(streamKeys)
|
||||
.setDrmKeySetId(keySetId)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue