0
我需要在我的應用程序中播放視頻我可以做什麼?謝謝。 * 這是我的代碼。 *如何播放視頻在iOS 6
#import <MediaPlayer/MediaPlayer.h>
NSURL *fileURL = [NSURL URLWithString:@"http://nordenmovil.com/urrea/InstalaciondelavaboURREAbaja.mp4"];
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(0, 0, 320, 270)];
[self.view addSubview:moviePlayerController.view];
moviePlayerController.fullscreen = YES;
[moviePlayerController play];
你自己寫的! 錯誤是什麼? (如果存在) –
我發現這是一個可能的解決方案,但不起作用。只顯示loading ... – Fabio
因爲它是18MB。您的手機正在下載它。嘗試一個小的! –