Note that there are some explanatory texts on larger screens.

plurals
  1. POAfter exit full screen MPMoviePlayerController set scaling mode to MPMovieScalingModeFill in ios
    primarykey
    data
    text
    <p>In my application i play video using mpmovieplayercontroller</p> <p>first set scaling mode to MPmovieScalingmodefill and display video correct to scalingmode.</p> <p>then after i view video in full screen and exit full screen then not set scaling mode to MPmovieScalingmodeFill and display video in defualt mode.</p> <p>below my code for video playing</p> <pre><code>[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ExitFullScreen:) name:MPMoviePlayerWillExitFullscreenNotification object:nil]; [appDelegate.moviePlayerController setContentURL:fileURL]; if ([appDelegate checkDevice]) { [appDelegate.moviePlayerController.view setFrame:CGRectMake(0,0, 320,463)]; } else { [appDelegate.moviePlayerController.view setFrame:CGRectMake(0,0, 320,375)]; } [appDelegate.moviePlayerController prepareToPlay]; appDelegate.moviePlayerController.scalingMode=MPMovieScalingModeFill; appDelegate.moviePlayerController.controlStyle=MPMovieControlStyleDefault; appDelegate.moviePlayerController.shouldAutoplay=NO; [appDelegate.moviePlayerController setFullscreen:YES animated:YES]; [appDelegate.moviePlayerController play]; [self.view addSubview:appDelegate.moviePlayerController.view]; - (void)ExitFullScreen:(NSNotification *)notification{ NSLog(@"Exit full Screen"); [appDelegate.moviePlayerController setControlStyle:MPMovieControlStyleEmbedded]; [appDelegate.moviePlayerController setScalingMode:MPMovieScalingModeFill];} </code></pre> <p>so my probleem is how can set scaling mode after exit full screen or do not change scaling mode after exit screen ?</p> <p>please help me out.</p> <p>thanks.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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