add: current timestamp update while sliding the seek bar on Android

This commit is contained in:
Saif Shaikh 2026-01-01 23:32:32 -08:00
parent 2da03d4931
commit 5d42a828d2
2 changed files with 2 additions and 1 deletions

View file

@ -894,7 +894,7 @@ const AndroidVideoPlayer: React.FC = () => {
isSubtitleModalOpen={modals.showSubtitleModal}
setShowSourcesModal={modals.setShowSourcesModal}
setShowEpisodesModal={type === 'series' ? modals.setShowEpisodesModal : undefined}
onSliderValueChange={(val) => { playerState.isDragging.current = true; }}
onSliderValueChange={(val) => { playerState.isDragging.current = true; playerState.setCurrentTime(val); }}
onSlidingStart={() => { playerState.isDragging.current = true; }}
onSlidingComplete={(val) => {
playerState.isDragging.current = false;

View file

@ -278,6 +278,7 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
height: 40,
marginHorizontal: 0,
}}
step={1}
minimumValue={0}
maximumValue={duration || 1}
value={currentTime}