aboutsummaryrefslogtreecommitdiff
path: root/components/videoPlayer.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/videoPlayer.js')
-rw-r--r--components/videoPlayer.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/videoPlayer.js b/components/videoPlayer.js
index e47e798..b007d95 100644
--- a/components/videoPlayer.js
+++ b/components/videoPlayer.js
@@ -12,6 +12,7 @@ export default function VideoPlayer({
op,
ed,
title,
+ poster,
}) {
const [url, setUrl] = useState();
const [source, setSource] = useState([]);
@@ -61,8 +62,6 @@ export default function VideoPlayer({
compiler();
}, [data]);
- // console.log(source);
-
return (
<>
{url ? (
@@ -74,8 +73,13 @@ export default function VideoPlayer({
title: `${title}`,
autoplay: true,
screenshot: true,
+ poster: poster ? poster : "",
+ }}
+ style={{
+ width: "100%",
+ height: "100%",
+ margin: "0 auto 0",
}}
- style={{ width: "100%", height: "100%", margin: "0 auto 0" }}
getInstance={(art) => {
art.on("ready", () => {
const seek = art.storage.get(id);