我正在编写一个应用程序,将照片卷中的电影存储到应用程序的本地文档文件夹中。我可以使用MPMoviePlayer播放远程电影,但尝试播放存储在应用程序文档文件夹中的电影时总是返回MPMovieLoadStateUnknown
。
The notifications are all getting sent and received from the default notification center (MPMoviePlayerLoadStateDidChangeNotification
, MPMoviePlayerPlaybackDidFinishNotification
).
An alert box shows up shortly after getting the loadStateUnknown message in the console, saying that the movie could not be played and the app then receives the movie playback completed notification.
我认为可能是找不到文件名(MPMoviePlayer只能将URL作为资产位置)的情况。有人处理过这个问题或类似的问题吗?