Enable next button if window is live

This behavior is consistent with DefaultControlDispatcher#dispatchNext().

#minor-release

PiperOrigin-RevId: 357145076
This commit is contained in:
kimvde 2021-02-12 09:21:20 +00:00 committed by Oliver Woodman
parent 0dba806894
commit 6afb669aa7
2 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ public class PlayerControlView extends FrameLayout {
enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious();
enableRewind = isSeekable && controlDispatcher.isRewindEnabled();
enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled();
enableNext = window.isDynamic || player.hasNext();
enableNext = window.isLive() || player.hasNext();
}
}

View File

@ -1144,7 +1144,7 @@ public class StyledPlayerControlView extends FrameLayout {
enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious();
enableRewind = isSeekable && controlDispatcher.isRewindEnabled();
enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled();
enableNext = window.isDynamic || player.hasNext();
enableNext = window.isLive() || player.hasNext();
}
}