iphone - Can I play an FLV on the iPad Simulator? -
I am trying to create a simple app for the iPad, when you play an FLV when you click on a button . I am using code in the form of a reference code for my click event is here
- (IBAction) btnPlayVideoClick: (ID) sender {NSString * videoPath = [[NSBundle mainBundle ] PathForResource: @ "myvideo" type: @ "flv"]; MPMoviePlayerController * myMovie = [[MPMoviePlayerController alloc] initWithContentURL: [ns URL] URLWithString: VideoPath]]; MyMovie.scalingMode = MPVcCalingModEscapeFilm; // Register to end playback notification. [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @selector (myMovieFinishedCallback :) Name: MPMoviePlayerPlaybackDidFinishNotification Object: myMovie]; [MyMovie Play]; } - (zero) myMovieFinished callback: (NSNotification *) A notification {MPMoviePlayerController * theMovie = [an information object]; [[NSNotificationCenter defaultCenter] Deletion Observer: Own Name: MP3 MPVplayerplaybackDefinitionTipification Object: Movie]; Release the example of a movie made in PlaymeV etRL [Movie Release]; }
I am able to successfully compile and run the app, but when I click on the button the app does not exit any error message or any activity altogether. Is there something that I'm doing wrong, or for some reason I can not play an FLV using the simulator I can not test on a real device yet because I wait for approval to get my Dev license I am here.
Thanks,
Mike
Flash in iOS Devices Not so, so you can not play flash video.
Comments
Post a Comment