chore: renaming refactoring

This commit is contained in:
Fredrik Burmester
2024-10-16 08:21:57 +02:00
parent fcffee1981
commit 0fb2a6d32b
4 changed files with 6 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ import {
} from "@/providers/PlaySettingsProvider";
import { getBackdropUrl } from "@/utils/jellyfin/image/getBackdropUrl";
import { getAuthHeaders } from "@/utils/jellyfin/jellyfin";
import { ticksToSeconds } from "@/utils/time";
import { ticksToMs, ticksToSeconds } from "@/utils/time";
import { Api } from "@jellyfin/sdk";
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api";
import * as Haptics from "expo-haptics";
@@ -255,6 +255,9 @@ export default function page() {
uri: playUrl,
autoplay: true,
isNetwork: true,
startPosition: ticksToMs(
playSettings.item.UserData?.PlaybackPositionTicks
),
}}
style={{ width: "100%", height: "100%" }}
onVideoProgress={onProgress}
@@ -267,21 +270,6 @@ export default function page() {
/>
</Pressable>
{/* <VideoDebugInfo
style={{
position: "absolute",
top: 0,
left: 0,
zIndex: 10,
}}
playbackState={playbackState}
progress={{
currentTime: progress.value,
duration: 0,
}}
playerRef={videoRef}
/> */}
{videoRef.current && (
<VlcControls
mediaSource={mediaSource}

View File

@@ -323,7 +323,7 @@ function Layout() {
}}
/>
<Stack.Screen
name="(auth)/play-video"
name="(auth)/player"
options={{
headerShown: false,
autoHideHomeIndicator: true,
@@ -359,7 +359,7 @@ function Layout() {
}}
/>
<Stack.Screen
name="(auth)/play-music"
name="(auth)/music-player"
options={{
headerShown: false,
autoHideHomeIndicator: true,