diff options
| author | Factiven <[email protected]> | 2023-04-17 13:33:37 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-17 13:33:37 +0700 |
| commit | 545d8a3473823f0a86cad3c177dbbb4ebb794a75 (patch) | |
| tree | 1606111911ea31c8fd8f9560dade41f5fedd6520 /components/videoPlayer.js | |
| parent | Update 7th (diff) | |
| download | moopa-545d8a3473823f0a86cad3c177dbbb4ebb794a75.tar.xz moopa-545d8a3473823f0a86cad3c177dbbb4ebb794a75.zip | |
Snapshot Moopa v3.2
Diffstat (limited to 'components/videoPlayer.js')
| -rw-r--r-- | components/videoPlayer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/videoPlayer.js b/components/videoPlayer.js index 092f53a..c0d551d 100644 --- a/components/videoPlayer.js +++ b/components/videoPlayer.js @@ -10,6 +10,7 @@ export default function VideoPlayer({ progress, session, aniId, + stats, }) { const [url, setUrl] = useState(); const [source, setSource] = useState([]); @@ -61,7 +62,7 @@ export default function VideoPlayer({ option={{ url: `${url}`, quality: [source], - // autoplay: true, + autoplay: true, screenshot: true, type: "m3u8", }} @@ -88,7 +89,7 @@ export default function VideoPlayer({ if (percentage >= 0.9) { // use >= instead of > - markProgress(aniId, progress); + markProgress(aniId, progress, stats); } else { return; } @@ -117,7 +118,7 @@ export default function VideoPlayer({ }, }); - console.log(res.status); + // console.log(res.status); const title = titles; const prevDataStr = localStorage.getItem("lastPlayed") || "[]"; |