From 7b70db4ea7a0b24b40e78ca8c35eccc10458f416 Mon Sep 17 00:00:00 2001 From: saltrafael Date: Fri, 20 Aug 2021 07:28:38 -0300 Subject: [PATCH] Add Replay Option to autoplayCountdown --- ui/component/autoplayCountdown/view.jsx | 13 +++++++++++++ .../viewers/videoViewer/internal/videojs.jsx | 9 +++++++++ ui/component/viewers/videoViewer/view.jsx | 5 ++++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ui/component/autoplayCountdown/view.jsx b/ui/component/autoplayCountdown/view.jsx index 31f2cc4bd..9be2a80f3 100644 --- a/ui/component/autoplayCountdown/view.jsx +++ b/ui/component/autoplayCountdown/view.jsx @@ -7,6 +7,8 @@ import { formatLbryUrlForWeb } from 'util/url'; import { withRouter } from 'react-router'; import debounce from 'util/debounce'; import { COLLECTIONS_CONSTS } from 'lbry-redux'; +import * as ICONS from 'constants/icons'; + const DEBOUNCE_SCROLL_HANDLER_MS = 150; const CLASSNAME_AUTOPLAY_COUNTDOWN = 'autoplay-countdown'; @@ -19,6 +21,7 @@ type Props = { doPlayUri: (string) => void, modal: { id: string, modalProps: {} }, collectionId?: string, + setReplay: (boolean) => void, }; function AutoplayCountdown(props: Props) { @@ -31,6 +34,7 @@ function AutoplayCountdown(props: Props) { history: { push }, modal, collectionId, + setReplay, } = props; const nextTitle = nextRecommendedClaim && nextRecommendedClaim.value && nextRecommendedClaim.value.title; @@ -142,6 +146,15 @@ function AutoplayCountdown(props: Props) {