Playing imdb video inside MPMediaPlayback not working

I fetch the video url from imdb of a trailer, like:

by adding the rest of the code:

moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; 
    [moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)]; 
    [self.view addSubview:moviePlayerController.view];

I only get this error (in the simlator, not tried on device):

Error getting audio input device sample rate

Regards Mirza


try bellow code

NSString *url = [NSString stringWithFormat:@"Url"];

    mp = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:url]];

    [[mp moviePlayer] prepareToPlay];
    [[mp moviePlayer] setUseApplicationAudioSession:NO];
    [[mp moviePlayer] setShouldAutoplay:YES];
    [[mp moviePlayer] setControlStyle:2];
    [[mp moviePlayer] setRepeatMode:MPMovieRepeatModeOne];
    [self presentMoviePlayerViewControllerAnimated:mp];

Need Your Help

Oracle, CLOB sizes report

oracle clob

I have a table with a Clob column

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.