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 thumbnail in Android (with autoplay set to false) #157

Open
alexiscoelho opened this issue Oct 24, 2019 · 2 comments
Open

Video thumbnail in Android (with autoplay set to false) #157

alexiscoelho opened this issue Oct 24, 2019 · 2 comments

Comments

@alexiscoelho
Copy link

alexiscoelho commented Oct 24, 2019

I'm having an issue that only occurs in Android.
When loading a video with the autoplay option turned off everything thing works perfectly in iOS, a thumbnail is displayed and on top of it the play button is displayed as well, but on Android I just get a white area with no thumbnail or anything else. I need to tap on that area and then on Android I can see the controls and start playing the video.
Is this the expected behaviour or I have something wrong?

One source example:
https://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_1280_10MG.mp4

@edusperoni
Copy link
Contributor

You can work around this by seeking to a frame (https://stackoverflow.com/questions/17079593/how-to-set-the-preview-image-in-videoview-before-playing). Unfortunately, the android mediaplayer does not show thumbs when the video is loaded.

There are a few alternatives worth considering, like overlaying a thumbnail image on top of the player.

@alexiscoelho
Copy link
Author

Yes, I thought about that. And overlaying an image/thumbnail, play button and so on it's what I'm implementing at the moment.
But really nice would be an out of the box feature. The alternative I'm implementing requires more work on the backend, cms and content manage to add that thumbnail data that would not be necessary if this feature worked on android as it works so nice on iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants