From 1c7c1cfd47f2fc80135adc7169e89ca9fb381faa Mon Sep 17 00:00:00 2001 From: zimplexing Date: Mon, 14 Jul 2025 13:43:54 +0800 Subject: [PATCH] fix: Adjust jump position logic in PlayScreen to ensure a default value of 0 is used when both introEndTime and initialPosition are undefined --- app/play.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/play.tsx b/app/play.tsx index 437a35a..553eb18 100644 --- a/app/play.tsx +++ b/app/play.tsx @@ -102,7 +102,7 @@ export default function PlayScreen() { resizeMode={ResizeMode.CONTAIN} onPlaybackStatusUpdate={handlePlaybackStatusUpdate} onLoad={() => { - const jumpPosition = introEndTime || initialPosition; + const jumpPosition = initialPosition || introEndTime || 0; if (jumpPosition > 0) { videoRef.current?.setPositionAsync(jumpPosition); }