diff options
| author | Factiven <[email protected]> | 2023-05-01 01:24:24 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-01 01:24:24 +0700 |
| commit | f026ac4ffc988c6de085a14e0eb0dc28fffe5482 (patch) | |
| tree | 7fa872b8d6dd3cc3c93c7a53f4475ad7b9db7a0a /components/videoPlayer.js | |
| parent | Merge branch 'pre-production' into main (diff) | |
| parent | Update v3.5 (diff) | |
| download | moopa-f026ac4ffc988c6de085a14e0eb0dc28fffe5482.tar.xz moopa-f026ac4ffc988c6de085a14e0eb0dc28fffe5482.zip | |
Update v3.5
Diffstat (limited to 'components/videoPlayer.js')
| -rw-r--r-- | components/videoPlayer.js | 10 |
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); |