Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I stop Full screen video after I resize it?
    primarykey
    data
    text
    <p>I try to resize video with Pinch Gesture. But after I pinch and animate resizing , video get to full screen that I dont want. How can I stop full screen ??</p> <p>take a look at my code and Please to help me</p> <pre><code>{ NSString *moviePath = [[NSBundle mainBundle] pathForResource:@"video1" ofType:@"MOV"]; movie = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:moviePath]]; movie.view.backgroundColor = [UIColor blackColor]; movie.controlStyle = MPMovieControlStyleDefault; movie.shouldAutoplay = YES; movie.view.frame = CGRectMake(0, 50, 720, 1280); [self.view addSubview:movie.view]; [movie play]; // ----------------------------------- // Add BlockView for block user touch // ----------------------------------- blockView.frame = CGRectMake(0, 50, 760, 1280); blockView.alpha = 0.2; [self.view addSubview:blockView]; // ----------------------------- // Add Pinch Gesture // ----------------------------- UIPinchGestureRecognizer *pinchIt = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchIn:)]; [self.blockView addGestureRecognizer:pinchIt]; } -(void)pinchIn:(UIPinchGestureRecognizer *)recognize { [movie pause]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:2]; movie.view.transform = CGAffineTransformMakeScale(0.5, 0.5); [UIView commitAnimations]; [movie setFullscreen:NO animated:NO]; //movie.view.frame = CGRectMake(100, 150, 360, 640); &lt;&lt; Have try this but didnt work [movie play]; } </code></pre>
    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.
    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