diff --git a/app/(auth)/player/_layout.tsx b/app/(auth)/player/_layout.tsx
index aef58664..dd9d2879 100644
--- a/app/(auth)/player/_layout.tsx
+++ b/app/(auth)/player/_layout.tsx
@@ -16,15 +16,6 @@ export default function Layout() {
animation: "fade",
}}
/>
-
= ({
item,
- videoRef,
seek,
play,
pause,
@@ -109,9 +99,6 @@ export const Controls: React.FC = ({
const [settings] = useSettings();
const router = useRouter();
const insets = useSafeAreaInsets();
- const { setPlaySettings, playSettings } = usePlaySettings();
- const api = useAtomValue(apiAtom);
- const windowDimensions = Dimensions.get("window");
const { previousItem, nextItem } = useAdjacentItems({ item });
const { trickPlayUrl, calculateTrickplayUrl, trickplayInfo } = useTrickplay(
@@ -150,14 +137,6 @@ export const Controls: React.FC = ({
const { bitrate, mediaSource, audioIndex, subtitleIndex } =
getDefaultPlaySettings(previousItem, settings);
- setPlaySettings({
- item: previousItem,
- bitrate,
- mediaSource,
- audioIndex,
- subtitleIndex,
- });
-
const queryParams = new URLSearchParams({
itemId: previousItem.Id ?? "", // Ensure itemId is a string
audioIndex: audioIndex?.toString() ?? "",
@@ -176,14 +155,6 @@ export const Controls: React.FC = ({
const { bitrate, mediaSource, audioIndex, subtitleIndex } =
getDefaultPlaySettings(nextItem, settings);
- setPlaySettings({
- item: nextItem,
- bitrate,
- mediaSource,
- audioIndex,
- subtitleIndex,
- });
-
const queryParams = new URLSearchParams({
itemId: nextItem.Id ?? "", // Ensure itemId is a string
audioIndex: audioIndex?.toString() ?? "",