Thursday, April 22, 2010

Problems with video playback in iPad.

Programmer Question

I'm trying to implement a MPMoviePlayerView but I can't play the video files, I don't have a device yet to try it on, now I'm testing with simulator, I don't know if this is the cause.



So far I've been able to present the view and it shows the first frame of the video, but if I click play, it doesn't play I can move the progress bar and it shows the images, but there's no movement, it stays still.
Has anyone experienced something like this?



The code of my UIViewController goes like this:



NSURL *movieURL=[NSURL fileURLWithPath:@"video.mp4"];
MPMoviePlayerViewController *playerView=[[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
[self presentMoviePlayerViewControllerAnimated:playerView];


As I said, it shows up, I can move the progress bar back and forth, I see a still image, but no movement. Am I missing something here? or is it the simulator?
Thank you



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails