From cb29acb38c687ee8eeacb49bd7635b39b006a180 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Thu, 15 Jul 2021 20:34:25 +0200 Subject: [PATCH] feat(video): store progress --- src/components/VideoElement.css | 2 +- src/components/VideoElement.js | 4 ++-- src/views/Movie.js | 31 ++++++++++++++++++++++++++++++- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/components/VideoElement.css b/src/components/VideoElement.css index cff2fd1d..f252de55 100644 --- a/src/components/VideoElement.css +++ b/src/components/VideoElement.css @@ -1,6 +1,6 @@ .videoElement { width: 100%; - background-color: var(--content); + background-color: black; border-radius: 5px; } diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js index f1aa506a..35ec011a 100644 --- a/src/components/VideoElement.js +++ b/src/components/VideoElement.js @@ -5,7 +5,7 @@ import { VideoPlaceholder } from './VideoPlaceholder' // streamUrl: string // loading: boolean -export function VideoElement({ streamUrl, loading }) { +export function VideoElement({ streamUrl, loading, setProgress }) { const videoRef = React.useRef(null); const [error, setError] = React.useState(false); @@ -37,6 +37,6 @@ export function VideoElement({ streamUrl, loading }) { return No video selected return ( -