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
Post a Comment