Fixed skip intro skipping more than the video length

This commit is contained in:
Alex Kim
2024-11-03 23:17:54 +11:00
parent 229670e829
commit 4eb7d0f151
3 changed files with 25 additions and 19 deletions

View File

@@ -76,6 +76,7 @@ export const useCreditSkipper = (
const skipCredit = useCallback(() => {
if (!creditTimestamps) return;
console.log(`Skipping credits to ${creditTimestamps.Credits.End}`);
try {
wrappedSeek(creditTimestamps.Credits.End);
setTimeout(() => {