Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:03:50+00:00 2026-06-10T22:03:50+00:00

I am using the MPMoviePlayerController to play the live streaming videos, and the code

  • 0

I am using the MPMoviePlayerController to play the live streaming videos, and the code which I am using is

[_moviePlayerController.view setFrame:self.view.bounds];
[_moviePlayerController prepareToPlay];
_moviePlayerController.fullscreen=YES;
_moviePlayerController.controlStyle = MPMovieControlStyleNone;
[_moviePlayerController setFullscreen:YES animated:YES];
[self.view addSubview:_moviePlayerController.view];

Video is playing in all orientations. But I have added one button on top of the movieplayer which lets you to scale the video.

I know in mediaplayer framework we are having MPMovieScalingModeNone,MPMovieScalingModeAspectFit,MPMovieScalingModeAspectFill and MPMovieScalingModeFill types of scaling mode option.
When the button is pressed down, I am setting the scaling mode as MPMovieScalingModeAspectFill , when it is pressed second time MPMovieScalingModeAspectFit.
This is also works great in the iPhone. But when I am not able to do any scaling operation when I am using the iPad LANDSCAPE Mode. Neither I am not able to use Fit or fill scaling mode when the iPad is in the Landscape mode.

Why ? What could be the reason ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:03:51+00:00Added an answer on June 10, 2026 at 10:03 pm

    If the video aspect ratio already fits perfectly onto the display (view) aspect ratio, none of the fit/fill operations have any effect. That is by design and not a problem.

    You should hide or disable that button once such perfect fit is available. To compare the video aspect ratio towards the view’s aspect ratio, use the naturalSize property of the player.

    naturalSize
    

    The width and height of the movie frame. (read-only)

    @property (nonatomic, readonly) CGSize naturalSize
    

    Discussion

    This property reports the clean aperture of the video in square
    pixels. Thus, the reported dimensions take into account anamorphic
    content and aperture modes.

    It is possible for the natural size of a movie to change during
    playback. This typically happens when the bit-rate of streaming
    content changes or when playback toggles between audio-only and a
    combination of audio and video.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iPhone application in which I play videos using MPMoviePlayerController .
I'm trying to play an HTTP live streaming video using a MPMoviePlayerController object, inside
Hi I have several apps using a MPMoviePlayerController. These apps play HTTP Live streaming
I am using the MPMoviePlayerController to play the video files in my application, videos
I am using the following code to play the video using the MPMoviePlayerController ,
I am using MPMoviePlayerController to play streaming audio. I'm trying to get background audio
every one. I'm trying to figure out how to play live stream using MPMoviePlayerController.
I'm using MPMoviePlayerController to play a video which has audio as well. It's working
How can I play a video in a circular view using MPMoviePlayerController . Is
i want to play a video within a UIView using MPMoviePlayerController. After pressing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.