IPhone - MPMoviePlayerController: Sample Code Demonstrating Two Problems

This is sample code involving MPMoviePlayerController that shows two problems:

FIRST PROBLEM - The controller disappears To see this first problem

  • Run the project on the iPad.
  • Select a video from the iPad library.
  • try to play it. The controller will disappear forever.

SECOND PROBLEM - Controller Failure

  • uncomment the line "[self createThumbnails];" (line 190).
  • run the application on the iPad again
  • select video

This method that you uncommented will create asynchronous thumbnails for the video and this will crash the application. As far as I tried to use this in the past, this requestThumbnailImagesAtTimes: allThumbnails timeOption: method never worked for videos selected from the library using the UIImagePickerController.

I knock my head on the wall for several days and I don’t know how to solve it.

Please, try.

Code here (this is an iPad project): http://www.mediafire.com/?6i4dm3a6gs888ci

Hope you guys can understand why this is happening.

early.

+3
source share
1 answer

, , , .

, :

  • MPMoviePlayerController , . .
  • , MPMoviePlayerController, .

, MPMoviePlayerControllers . , UIImagePickerController, .

0

Source: https://habr.com/ru/post/1782208/


All Articles