problem in playing mp4 video in safari

Posted by Codiator on Stack Overflow See other posts from Stack Overflow or by Codiator
Published on 2010-03-17T06:02:15Z Indexed on 2010/03/17 6:11 UTC
Read the original article Hit count: 156

I have a particular link to a video file in server. when i load the safari through

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://mydomain/category/2.mp4"]];

simulator pops out an alert message saying that "Cannot Play MOVIE.. Server is not correctly configured".......

Even I tried using the mediaPlayer framework - MPMoviePlayerController and loading it with th e url-"http://mydomain/category/2.mp4" but it didnt play out.

when i paste the same url in the 10.5 leopards safari it plays out smoothly.. What may be the reason behind it.?

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about mpmovieplayercontroller