skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

    Both Video having different different ref and add these properties.

     ref={playerRef1}
        disableFocus={true}
        useTextureView={false}
        playInBackground={true}
    

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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search