This commit is contained in:
Fredrik Burmester
2024-10-12 13:41:09 +02:00
parent bf8687a473
commit ba6322bb1f
3 changed files with 58 additions and 25 deletions

View File

@@ -152,9 +152,16 @@ export default function page() {
if (isSeeking.value === true) return;
if (isPlaybackStopped === true) return;
const { currentTime, duration } = data.nativeEvent;
const { currentTime, duration, isBuffering, isPlaying } =
data.nativeEvent;
console.log("onProgress ~", {
currentTime,
duration,
isBuffering,
isPlaying,
});
console.log("onProgress ~", currentTime);
progress.value = currentTime;
// cacheProgress.value = secondsToTicks(data.playableDuration);
@@ -297,7 +304,7 @@ export default function page() {
/>
</Pressable>
<VideoDebugInfo
{/* <VideoDebugInfo
style={{
position: "absolute",
top: 0,
@@ -310,7 +317,7 @@ export default function page() {
duration: 0,
}}
playerRef={videoRef}
/>
/> */}
<Controls
item={playSettings.item}