Note that there are some explanatory texts on larger screens.

plurals
  1. POA problem with Media Player base on iOS4 and deploy iOS3
    primarykey
    data
    text
    <p>when Run on Device 3.1.2, why it also pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) and do code of iOS4 then it will crash , how to fix this issues?</p> <pre><code> if(NSClassFromString(@"MPMoviePlayerViewController") != nil) { // iOS 4 code NSLog(@"MPMoviePlayerViewController"); MPMoviePlayerViewController *mp = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:AppDelegate.PushLink]]; if (mp) { // save the movie player object self.theMovie4 = mp; [mp release]; //Present [self presentMoviePlayerViewControllerAnimated:self.theMovie4]; // Play the movie! self.theMovie4.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming; [self.theMovie4.moviePlayer play]; } } else { //iOS 3 Code AppDelegate = nil; AppDelegate = [[UIApplication sharedApplication] delegate]; [AppDelegate ForceHideNavigationBar]; theMovie3 = nil; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePreloadDidFinish:) name:MPMoviePlayerContentPreloadDidFinishNotification object:theMovie3]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:theMovie3]; // Register to receive a notification when the movie scaling mode has changed. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieScalingModeDidChange:) name:MPMoviePlayerScalingModeDidChangeNotification object:theMovie3]; theMovie3 = [[MPMoviePlayerController alloc] initWithContentURL: [NSURL URLWithString:AppDelegate.PushLink]]; [theMovie3 play]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload