iphone - Playing a video in iOS app: audio but no picture -


I want a small video to play in my iPhone app when I use the code below, then I only listen to the audio I see the regular view of the app. I want to play at the top of this scene. What can I do about this?

  NSBindle * bundle = [NSBindal Mainbundle]; NSSTING * MoviePath = [Bundle Pathforesource: @ "Leader" type: @ "mov"]; NSDRAUL * Movie URL = [[NSRR file URLTHTH Path: MoviePath] has been retained; MPMoviePlayerController * TheMovie = [[MP3 MPV Player Controller Alok] initWithContentURL: movieURL]; TheMovie.scalingMode = MPVsklingModeSpeechFile; [Movie play]; MPMoviePlayerViewController * Movie Player = [[MP3 MPV Player Wii Controller Alok] Init with Content URL: Movie URL]; [Self current movie player visualizer unmanned: movie player]; Do not mix    

MPMoviePlayerController and MPMoviePlayerViewController < / Code>. When you use MPMoviePlayerController , it can be used ( usually for embedded videos on an iPad ):

  MPMoviePlayerController * player = [ [MPMoviePlayerController alloc] InitWithContentURL: myURL]; [Player.viewSet Frame: myView.bounds]; // Player Frame must match parents [myView addSubview: player.view]; // ... [player's game];   

When you use MPMoviePlayerViewController , then presentMoviePlayerViewControllerAnimated: () Submit video with

Comments