在更新我的应用时遇到一个奇怪的问题iOS 7.因为iOS 6,没有问题,视频总是被加载.然而,这不是这种情况.
我有一个scrollview显示playlistItems- 一旦你点击它playlistItem,MPMoviePlayerController创建一个a 来显示播放列表项目(视频).
以下是我认为导致问题的方法:
- (void) play:(NSInteger)itemId withAutostart:(BOOL)autostart {
// remember whether it is in fullscreen or not to restore for the next playlist item
self.playerInFullscreen = self.player.isFullscreen;
if (player != nil) {
[self.player setFullscreen:NO animated:NO];
[self stopListeningPlaybackFinishedEvents];
[player stop];
[self startListeningPlaybackFinishedEvents];
}
PlaylistItem * pi = [dbHelper getPlaylistItem:itemId];
NSURL *movieURL = [pi getMovieUrl];
if (DELEGATE.useSSL) {
NSURLCredential *credential = [[NSURLCredential alloc]
initWithUser: DELEGATE.username
password: …Run Code Online (Sandbox Code Playgroud)