Skip to content

Commit

Permalink
Codec failure retry timeout logic (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-bondarenko85 authored Jun 3, 2024
1 parent ed09c9b commit 6b0ab15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,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 @@ -74,8 +74,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

0 comments on commit 6b0ab15

Please sign in to comment.