0

I have a react-native app with videos that I am displaying using react-native-video. Right now when the video has finished playing you have to manually drag the control for the position of the video back to zero and then press play to have the video restart.

How can I make the video automatically reset when it has been played to the end? (Or even better, is there any way to add a replay button?)

Currently the app is only for iOS.

Robban
  • 1,191
  • 2
  • 13
  • 25

1 Answers1

0

Try adding repeat value equals to true in Video Component. It will do your work and video will autoplay upon ending.

<Video...repeat={true}/>
Anis D
  • 761
  • 11
  • 25
Abdullah
  • 101
  • 1
  • 5
  • Preferably I would want the video to stop and the video position moved to the first frame when the video reaches the end. The repeat functionality looks interesting though. – Robban Sep 25 '20 at 08:58