Home > OS >  How to play 2 videos in react native and that can play/pause by one button?? I am using react-native
How to play 2 videos in react native and that can play/pause by one button?? I am using react-native

Time:09-01

I want to play 2 videos with play pause by one button. both Video will pause on same time and will play on same time when we clicked on button.

I am using react-native-video.

CodePudding user response:

Give ref to both videos, video1Ref and video2Ref, and on button press just start videos on both refs.

  • Related