Create MPMoviePlayer as paused
-
21-07-2021 - |
Question
I'm trying to create an MPMoviePlayer as paused at appearance. I've tried doing just a regular pause, as a selector with 0.1s delay, let NSNotificationCenter pause it as soon as the movie started (This did work, but with a slight delay. The movie played for a second before paus).
Is there a way to keep it paused from first appearance?
Thanks in advance
Solution 2
Sorry for taking y'alls time... A friend helped me just after I posted the question.
Apparently there is a property called shouldAutoplay
that I missed in the documentation.
Just use that.
OTHER TIPS
use pause method to do it
[moviePlayer pause];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow