Skip to content

Commit

Permalink
Merge branch 'develop' into KUX-1761
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-bondarenko85 committed Oct 1, 2024
2 parents 543cad3 + 67db4f3 commit bfd9524
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ private void updatePlayerSettings() {
if (initOptions.shutterStaysOnRenderedFirstFrame != null) {
pkPlayer.getSettings().setShutterStaysOnRenderedFirstFrame(initOptions.shutterStaysOnRenderedFirstFrame);
}
if (initOptions.codecFailureRetryCount != null) {
pkPlayer.getSettings().setCodecFailureRetryCount(initOptions.codecFailureRetryCount);
}
if (initOptions.codecFailureRetryTimeout != null) {
pkPlayer.getSettings().setCodecFailureRetryTimeout(initOptions.codecFailureRetryTimeout);
}
}

@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ public class PlayerInitOptions {
public Integer maxAudioBitrate;
public Integer maxAudioChannelCount;
public MulticastSettings multicastSettings;

public Boolean shutterStaysOnRenderedFirstFrame;
public Integer codecFailureRetryCount;
public Integer codecFailureRetryTimeout;

public MediaEntryCacheConfig mediaEntryCacheConfig;
public OfflineManager.OfflineProvider offlineProvider = OfflineManager.OfflineProvider.DTG;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,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

0 comments on commit bfd9524

Please sign in to comment.