Commit 90c18e44 by kimvde Committed by marcbaechinger

Enable next button if window is live

This behavior is consistent with DefaultControlDispatcher#dispatchNext().

#minor-release

PiperOrigin-RevId: 357145076
parent 2635922b
...@@ -916,7 +916,7 @@ public class PlayerControlView extends FrameLayout { ...@@ -916,7 +916,7 @@ public class PlayerControlView extends FrameLayout {
enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious(); enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious();
enableRewind = isSeekable && controlDispatcher.isRewindEnabled(); enableRewind = isSeekable && controlDispatcher.isRewindEnabled();
enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled(); enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled();
enableNext = window.isDynamic || player.hasNext(); enableNext = window.isLive() || player.hasNext();
} }
} }
......
...@@ -1144,7 +1144,7 @@ public class StyledPlayerControlView extends FrameLayout { ...@@ -1144,7 +1144,7 @@ public class StyledPlayerControlView extends FrameLayout {
enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious(); enablePrevious = isSeekable || !window.isDynamic || player.hasPrevious();
enableRewind = isSeekable && controlDispatcher.isRewindEnabled(); enableRewind = isSeekable && controlDispatcher.isRewindEnabled();
enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled(); enableFastForward = isSeekable && controlDispatcher.isFastForwardEnabled();
enableNext = window.isDynamic || player.hasNext(); enableNext = window.isLive() || player.hasNext();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment