objective c - MpMoviePlayerController streaming video problem in simulator -



objective c - MpMoviePlayerController streaming video problem in simulator -

i working on mpmovieplayercontroller, playing video in url @"http://www... xyz... not playing in simulator.

i

nsstring *url = @"hhttp://www... xyz... "; mpmovieplayercontroller *movieplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:[nsurl urlwithstring:url]];

nsstring *urlstr = [[nsbundle mainbundle] pathforresource:@"video.mp4" oftype:nil]; nsurl *url = [nsurl fileurlwithpath:urlstr]; movieplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:url]; [self.view addsubview:movieplayer.view]; movieplayer.view.frame = cgrectmake(50, 50, 200, 200); [movieplayer play];

objective-c ipad

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -