From b3d190f1d409ea0f55d7666e845c2a3e3bb34707 Mon Sep 17 00:00:00 2001 From: Inbal Vasserman Date: Sun, 2 Jun 2024 15:01:55 +0300 Subject: [PATCH 1/2] fix(SUP-38389):Offline download DRM issues --- .../com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java b/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java index 6117981d..40ddc148 100644 --- a/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java +++ b/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java @@ -65,7 +65,7 @@ public void onDownloadStart(DownloadItem item) { postEvent(() -> getListener().onStateChanged(assetId, DownloadType.FULL, new DTGAssetInfo(item, AssetDownloadState.started))); - postEventDelayed(() -> registerDrmAsset(assetId, true), 4000); + postEventDelayed(() -> registerDrmAsset(assetId, true), 7000); } @Override @@ -289,6 +289,7 @@ private void registerDrmAsset(String assetId, boolean allowFileNotFound) { } try { + //todo: ad change here? final byte[] widevineInitData = getWidevineInitData(localFile); lam.registerWidevineAsset(assetId, getAssetFormat(assetId), licenseUri, widevineInitData, forceWidevineL3Playback); postEvent(() -> getListener().onRegistered(assetId, getDrmStatus(assetId, widevineInitData))); From 06f4d8a8a78642c73aaa8984058b15d6e8a204a1 Mon Sep 17 00:00:00 2001 From: Inbal Vasserman Date: Sun, 2 Jun 2024 15:07:24 +0300 Subject: [PATCH 2/2] remove un-needed notes --- .../java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java b/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java index 40ddc148..8f4c0d9f 100644 --- a/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java +++ b/tvplayer/src/main/java/com/kaltura/tvplayer/offline/dtg/DTGOfflineManager.java @@ -289,7 +289,6 @@ private void registerDrmAsset(String assetId, boolean allowFileNotFound) { } try { - //todo: ad change here? final byte[] widevineInitData = getWidevineInitData(localFile); lam.registerWidevineAsset(assetId, getAssetFormat(assetId), licenseUri, widevineInitData, forceWidevineL3Playback); postEvent(() -> getListener().onRegistered(assetId, getDrmStatus(assetId, widevineInitData)));