react-native-video-controls icon indicating copy to clipboard operation
react-native-video-controls copied to clipboard

Seekbar incorrect position on Landscape

Open Thanmai-C opened this issue 7 years ago • 3 comments

Seekbar shows wrong position when i rotate(Landscape) the device after the video ends. Seems like seekbar onLayout is not updating while rotating the device (especially when video ends(portrait), rotate device to landscape orientation the seek position is not correct)

"react": "16.0.0-alpha.12", "react-native": "0.46.4", "react-native-video": "^2.0.0"

Tested on Nexus 5X, Lenovo (Android 7.0)

Thanmai-C avatar Dec 19 '17 12:12 Thanmai-C

When seeking sometimes seek handle hops back to original position #9 , issues seems to exist still.

Thanmai-C avatar Dec 20 '17 03:12 Thanmai-C

I'm seeing an issue when you pause the video, hide controls rotate the phone, show controls and then press play again....likely related. I'll take a look.

kylemilloy avatar Dec 22 '17 20:12 kylemilloy

@Thanmai-C Once End Reset all the things so your case will never occur with this

_onEnd() { let state = this.state; state.paused = true;
this.seekTo(0) this.setState(state) this.setSeekerPosition(0)

}

Krish143git avatar Apr 05 '22 16:04 Krish143git