From 33a7a1d9726fdf85000717ce2d06ff13bcd0888a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Wed, 5 Jun 2024 10:43:56 +0200 Subject: [PATCH] Enable multi session for drm (#566) --- .../ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt | 1 + .../main/java/ch/srgssr/pillarbox/demo/shared/data/DemoItem.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt index 015096462..a55aaad3f 100644 --- a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt +++ b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt @@ -178,6 +178,7 @@ class SRGAssetLoader( return drm?.let { MediaItem.DrmConfiguration.Builder(C.WIDEVINE_UUID) .setLicenseUri(it.licenseUrl) + .setMultiSession(true) .build() } } diff --git a/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/data/DemoItem.kt b/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/data/DemoItem.kt index bb2cc6fd2..3449cccff 100644 --- a/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/data/DemoItem.kt +++ b/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/data/DemoItem.kt @@ -64,6 +64,7 @@ data class DemoItem( licenseUrl?.let { DrmConfiguration.Builder(C.WIDEVINE_UUID) .setLicenseUri(licenseUrl) + .setMultiSession(true) .build() } )