I am writing an application that stores movies in a photo brochure in a folder of local documents for the application. I can play deleted movies using MPMoviePlayer, however, trying to play a movie stored in the document folder, the application always returns MPMovieLoadStateUnknown .
All notifications are sent and received from the default notification center ( MPMoviePlayerLoadStateDidChangeNotification , MPMoviePlayerPlaybackDidFinishNotification ). A warning window will appear shortly after receiving a loadStateUnknown message in the console saying that the movie cannot be played, and the application then receives a notification that the movie has finished playing.
I think this may be the case when the file name (MPMoviePlayer can only accept the URL as the location of the asset) cannot be found. Has anyone dealt with this problem or the like?
objective-c iphone ipad mpmovieplayercontroller
Kyle
source share