Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Controls randomly appear in certain videos during playback when defaultControlsVisible prop is set to true #508

Open
eeshankeni opened this issue Nov 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@eeshankeni
Copy link

eeshankeni commented Nov 17, 2021

I've noticed that every time (for specific videos), the controls randomly pop up during playback. This can be rather annoying. The problem only happens when I set defaultControlsVisible={true}.
Tried this with multiple videos, it seems to only happen to specific videos so far. However when the bug does happen its always at the same timestamp every time.

To Reproduce
Steps to reproduce the behavior:

  1. Setup the Video Player Component
  2. Add Source to a video (local file in this case)
  3. Set defaultControlsVisible={true}
  4. Controls should pop up randomly and always at the same time stamp.

Screenshots
Link to recording of the bug

Expected behaviour
Video Controls should never pop up unless the user taps on the video.

Additional information:

  • Type: Real device
  • Device: OnePlus 6, OnePlus 3, OnePlus Nord CE, Moto G5
  • OS: Android 10
  • Package version 2.0.1
  • Expo version 42.0.1

Code and videos

I have added the 2 video files I used to recreate the bug in case anyone wants to test.

<VideoPlayer
        videoProps={{
          shouldPlay: false,
          resizeMode: Video.RESIZE_MODE_CONTAIN,
          source: require('../Dummy_Posts/VideoPosts/8.mp4'),
          
        }}
        defaultControlsVisible={true}
        
        style={{ height: 350 }}
      />
@eeshankeni eeshankeni added the bug Something isn't working label Nov 17, 2021
@eeshankeni eeshankeni changed the title VideoControls randomly appear in certain videos during playback when defaultControlsVisible prop is set to true Video Controls randomly appear in certain videos during playback when defaultControlsVisible prop is set to true Nov 17, 2021
@EHF32
Copy link

EHF32 commented May 15, 2022

Having the same issue, any workaround?

@eeshankeni
Copy link
Author

Having the same issue, any workaround?

I just moved back to using expo av, it's much better to use that with default native controls. I belive this package is also stuck on an older version of expo-av

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants