Skip to content

Commit

Permalink
player: error fixer upd + chapters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Jan 7, 2025
1 parent 4d4bc89 commit 5bf2f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public void onSuggestionItemClicked(Video item) {
@Override
public void onControlsShown(boolean shown) {
if (shown) {
focusCurrentChapter();
//focusCurrentChapter();
Utils.postDelayed(this::focusCurrentChapter, 0); // fix ui jump when shown
} else {
startChapterNotificationServiceIfNeeded();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ private boolean applyGenericErrorAction(int type, int rendererIndex, Throwable e

if (mPlayerData.getVideoBufferType() == PlayerData.BUFFER_MEDIUM || mPlayerData.getVideoBufferType() == PlayerData.BUFFER_LOW) {
mPlayerTweaksData.enableSectionPlaylist(false);
mPlayerTweaksData.enableHighBitrateFormats(false);
//mPlayerTweaksData.enableHighBitrateFormats(false);
restartEngine = false;
} else {
mPlayerData.setVideoBufferType(PlayerData.BUFFER_MEDIUM);
Expand Down

0 comments on commit 5bf2f1e

Please sign in to comment.