mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-19 07:37:31 +08:00
fix: Adjust jump position logic in PlayScreen to ensure a default value of 0 is used when both introEndTime and initialPosition are undefined
This commit is contained in:
@@ -102,7 +102,7 @@ export default function PlayScreen() {
|
|||||||
resizeMode={ResizeMode.CONTAIN}
|
resizeMode={ResizeMode.CONTAIN}
|
||||||
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}
|
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}
|
||||||
onLoad={() => {
|
onLoad={() => {
|
||||||
const jumpPosition = introEndTime || initialPosition;
|
const jumpPosition = initialPosition || introEndTime || 0;
|
||||||
if (jumpPosition > 0) {
|
if (jumpPosition > 0) {
|
||||||
videoRef.current?.setPositionAsync(jumpPosition);
|
videoRef.current?.setPositionAsync(jumpPosition);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user