mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-22 16:54:42 +01:00
wip
This commit is contained in:
@@ -116,8 +116,8 @@ export default function page() {
|
||||
}, [videoRef]);
|
||||
|
||||
const seek = useCallback(
|
||||
(ticks: number) => {
|
||||
videoRef.current?.seek(ticksToSeconds(ticks));
|
||||
(seconds: number) => {
|
||||
videoRef.current?.seek(seconds);
|
||||
},
|
||||
[videoRef]
|
||||
);
|
||||
@@ -151,20 +151,12 @@ export default function page() {
|
||||
if (isSeeking.value === true) return;
|
||||
if (isPlaybackStopped === true) return;
|
||||
|
||||
console.log({
|
||||
data,
|
||||
isSeeking: isSeeking.value,
|
||||
isPlaybackStopped,
|
||||
});
|
||||
|
||||
const ticks = secondsToTicks(data.currentTime);
|
||||
|
||||
progress.value = ticks;
|
||||
cacheProgress.value = secondsToTicks(data.playableDuration);
|
||||
setIsBuffering(data.playableDuration === 0);
|
||||
|
||||
console.log("progress.value", progress.value);
|
||||
|
||||
if (!playSettings?.item?.Id || data.currentTime === 0) return;
|
||||
|
||||
await getPlaystateApi(api).onPlaybackProgress({
|
||||
@@ -353,9 +345,6 @@ export function useVideoSource(
|
||||
|
||||
return {
|
||||
uri: playUrl,
|
||||
textTracks: {
|
||||
|
||||
},
|
||||
isNetwork: true,
|
||||
startPosition,
|
||||
headers: getAuthHeaders(api),
|
||||
|
||||
Reference in New Issue
Block a user