diff --git a/src/routes/Player/ControlBar/ControlBar.js b/src/routes/Player/ControlBar/ControlBar.js
index fa23e8e2f..c46ea85b2 100644
--- a/src/routes/Player/ControlBar/ControlBar.js
+++ b/src/routes/Player/ControlBar/ControlBar.js
@@ -21,6 +21,7 @@ const ControlBar = ({
subtitlesTracks,
audioTracks,
metaItem,
+ nextVideo,
onPlayRequested,
onPauseRequested,
onMuteRequested,
@@ -55,6 +56,15 @@ const ControlBar = ({
}
}
}, [paused, onPlayRequested, onPauseRequested]);
+ const onNextVideoButtonClick = React.useCallback(() => {
+ if (nextVideo !== null && typeof nextVideo.deepLinks === 'object') {
+ if (nextVideo.deepLinks.player !== null) {
+ window.location.replace(nextVideo.deepLinks.player);
+ } else if (nextVideo.deepLinks.metaDetailsStreams !== null) {
+ window.location.replace(nextVideo.deepLinks.metaDetailsStreams);
+ }
+ }
+ }, [nextVideo]);
const onMuteButtonClick = React.useCallback(() => {
if (muted) {
if (typeof onUnmuteRequested === 'function') {
@@ -105,6 +115,14 @@ const ControlBar = ({
+ {
+ nextVideo !== null ?
+
+ :
+ null
+ }