Video playback how to zoom so the entire video picture is displayed on the screen
I'm using MPMoviePlaybackController to play movies on m开发者_StackOverflow中文版y iPhone app. Everything works fine, except the full screen toggle bottom basically does nothing. When I toggle it, the picture grows slightly.
I want it to behave like every other app that plays videos on the iphone. When you toggle the full screen button, the picture is zooomed, so aspect ratio is maintained, but you just end up losing part of the picture, since it's off screen.
What is the purpose of the full screen toggle if it doesn't actually show the video full screen?
Any ideas?
I guess you are talking about MPMoviePlayerController Class, it should do the necessary.
anyways you can use the below notifications to manually rezize the size of window, use scalingMode of the property and set it to any of the below scaling mode typedef enum { MPMovieScalingModeNone, MPMovieScalingModeAspectFit, MPMovieScalingModeAspectFill, MPMovieScalingModeFill } MPMovieScalingMode;
Whenever the movie player enters or exits full-screen mode, it posts appropriate notifications to reflect the change. For example, upon entering full-screen mode, it posts MPMoviePlayerWillEnterFullscreenNotification and MPMoviePlayerDidEnterFullscreenNotification notifications. Upon exiting from full-screen mode, it posts MPMoviePlayerWillExitFullscreenNotification and MPMoviePlayerDidExitFullscreenNotification notifications.
精彩评论