Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes. That's great. There are really notifications mentioned above...</p> <p>However, there are no MPMoviePlayerPlaybackWillFinishNotification somewhy!!! That's really a problem.</p> <p>When you call the movie player as modal (no matter which of the following methods used presentViewController/presentModalViewController/presentVideoController), if you defined .fullScreen = YES, it's not expected to call <strong>MPMoviePlayerWillExitFullscreenNotification</strong> notification <strong>at all</strong> (obviously, because it's not cosidering we enter/exit from full screen, but only present/dismiss the controller).</p> <p>But there are really no any notifications that the video is about to finish and close. That's needed (besides any other situations possible) to catch the moment when the transition of dismissing is started. (The transition, of course, starts before the <strong>MPMoviePlayerPlaybackDidFinishNotification</strong> called). And, at the same time, application:supportedInterfaceOrientationsForWindow: for previously shown controller is called before the notification, and there is no way to say the AppDelegate that our current controller must be shown already in another orientation.</p> <p>So, since my video is fullscreen and also without any controls shown (this is kind of an intro, so I just until it finishes) <strong>my solution was just to have a timer which checks every short tick (0.1 seconds) what is the video current position</strong>... and it it's close to the end, then this is the moment for my own notification.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload