fix: haptics

This commit is contained in:
Fredrik Burmester
2024-12-21 13:03:32 +01:00
parent a32eb710ec
commit ba4a2c0b79
5 changed files with 10 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import { apiAtom } from "@/providers/JellyfinProvider";
import { getAuthHeaders } from "@/utils/jellyfin/jellyfin";
import { writeToLog } from "@/utils/log";
import { msToSeconds, secondsToMs } from "@/utils/time";
import * as Haptics from "expo-haptics";
interface IntroTimestamps {
EpisodeId: string;
@@ -78,6 +79,7 @@ export const useIntroSkipper = (
console.log("skipIntro");
if (!introTimestamps) return;
try {
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
wrappedSeek(introTimestamps.IntroEnd);
setTimeout(() => {
play();