Skip to content

Commit

Permalink
fix(SUP-38389):Offline download DRM issues
Browse files Browse the repository at this point in the history
  • Loading branch information
inbalvasserman committed Jun 2, 2024
1 parent ed09c9b commit b3d190f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit b3d190f

Please sign in to comment.