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

Autoplay with video.setNativePlayerMode(true) #2972

Closed
jsfan3 opened this issue Dec 27, 2019 · 0 comments
Closed

Autoplay with video.setNativePlayerMode(true) #2972

jsfan3 opened this issue Dec 27, 2019 · 0 comments
Assignees
Milestone

Comments

@jsfan3
Copy link
Contributor

jsfan3 commented Dec 27, 2019

Please consider this code:

Media video = MediaManager.createMedia(videoPath, true);
video.setNativePlayerMode(true); // this works nicely on iOS 12, I didn't test other iOS versions yet
video.prepare();
video.setFullScreen(true);
video.play();

The play method actually doesn't start to play the video on iOS: it opens the video, but keeps it paused. I suppose that this code doesn't implement an autoplay. Is there any chance to have an autoplay with iOS and with .setNativePlayerMode(true)? If is it a missing feature, can you add it please?

@codenameone codenameone added this to the Version 7.0 milestone Dec 28, 2019
shannah added a commit that referenced this issue Dec 30, 2019
Fixed issue with video continuing to play in simulator after back button is pressed in native player mode.
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