How To Rotate An MPMoviePlayerController

前端 未结 3 1395
抹茶落季
抹茶落季 2020-12-15 02:01

I am building an iPhone app that plays videos on demand from a web service.

The videos play in an MPMoviePlayerController, and everything works fine on the iPhone de

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 02:52

    i found this way only useful but it is timetaking to set the desired frame-

    theMovie=[[MPMoviePlayerController alloc] initWithContentURL:theURL]; 
    // Rotate the view for landscape playback   
    [[theMovie view] setBounds:CGRectMake(-230, 155, 480, 350)];
    [[theMovie view] setTransform:CGAffineTransformMakeRotation(M_PI / 2)]; 
    

提交回复
热议问题