I am trying to play video in iOS - MPMoviePlayerController using URL. But it is not allowing me to load the video. I am using following code in viewDidLoad Method:
NSURL *fileURL = [NSURL URLWithString:@"http://videos.testtube.com/revision3/web/discoverydinosaurs/0035/discoverydinosaurs--0035--male-dinosaurs-battle--large.h264.mp4"];
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:self.view.bounds];
[self.view addSubview:moviePlayerController.view];
moviePlayerController.movieSourceType = MPMovieSourceTypeStreaming;
moviePlayerController.fullscreen = YES;
moviePlayerController.shouldAutoplay = YES;
[moviePlayerController prepareToPlay];
[moviePlayerController play];
It is giving me following error log:
<Info>: logging starts...
<Debug>: setMessageLoggingBlock: called
ERROR: 98: Error '!obj' trying to fetch default input device's sample rate
ERROR: 100: Error getting audio input device sample rate: '!obj'
WARNING: 230: The input device is 0x0; '(null)'
WARNING: 234: The output device is 0x26; 'AppleHDAEngineOutput:1B,0,1,2:0'
ERROR: 400: error '!obj'
ERROR: 400: error -66680
ERROR: 113: * * * NULL AQIONode object
ERROR: 400: error -66680
ERROR: 400: error -66680
ERROR: 703: Can't make UISound Renderer
ERROR: 400: error -66680
ERROR: 400: error -66680
ERROR: 400: error -66680
ERROR: 400: error -66680
ERROR: 400: error -66680
Please help me to resolve this error.
Is it really possible to play video using URL in MPMoviePlayerController???
Please help.
Thanks and regards.