diff --git a/tvplayer/src/main/java/com/kaltura/tvplayer/KalturaPlayer.java b/tvplayer/src/main/java/com/kaltura/tvplayer/KalturaPlayer.java index 3e6ee961..797ce4a8 100644 --- a/tvplayer/src/main/java/com/kaltura/tvplayer/KalturaPlayer.java +++ b/tvplayer/src/main/java/com/kaltura/tvplayer/KalturaPlayer.java @@ -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 diff --git a/tvplayer/src/main/java/com/kaltura/tvplayer/PlayerInitOptions.java b/tvplayer/src/main/java/com/kaltura/tvplayer/PlayerInitOptions.java index c8d0d7cc..88d9c581 100644 --- a/tvplayer/src/main/java/com/kaltura/tvplayer/PlayerInitOptions.java +++ b/tvplayer/src/main/java/com/kaltura/tvplayer/PlayerInitOptions.java @@ -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;