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 4111692
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:05:57+00:00 2026-05-20T22:05:57+00:00

I am streaming a video into my iPad app from a server. I am

  • 0

I am streaming a video into my iPad app from a server. I am using the following code:

    NSURL *videoURL = [NSURL URLWithString:@"http://10.1.0.251/blah/videos/test.mp4"]; 
MPMoviePlayerViewController* playerController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
playerController.moviePlayer.view.frame = CGRectMake(50, 50, 200, 200);
[self presentMoviePlayerViewControllerAnimated:playerController];
playerController.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
[playerController.moviePlayer play];
[playerController release];
playerController=nil;

This gives me no control over the frame for the video and also the player quits after playing the video once? How can i control the frame and allow “replays”?

The following code allows me the above functionality on a iPhone and also on iPad(local videos only not streaming)

NSURL *url = [NSURL URLWithString:strVideo];
    moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
    moviePlayer.view.frame = CGRectMake(50, 50, 480, 320);
moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
    moviePlayer.scalingMode=MPMovieScalingModeAspectFill;
    moviePlayer.shouldAutoplay = YES;
    moviePlayer.controlStyle=MPMovieControlStyleEmbedded;
    [self.view addSubview:moviePlayer.view];
           [moviePlayer play];

How do I achieve the same for iPad?

  • 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-05-20T22:05:58+00:00Added an answer on May 20, 2026 at 10:05 pm

    Ok, the above customization cannot be achieved in an ipad. The MPMoviePlayerController or the MPMoviePlayerViewController do not allow that.

    Those who need such custom close buttons, the workaround that I am using would be to play the video via a UIWebView and have such close buttons over it. Not elegant but does the job.

    EDIT: If you need to do the same for videos playing locally then it can be achieved via MPMoviePlayerController.

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

Sidebar

Related Questions

The iPad/iOS has video streaming support for e.g. H.264 using MPMoviePlayerController etc., but i
I am looking for the advantages of using RTSP to support streaming video to
I am using standard 3G connection for video streaming. Streaming Media application works fine.
I would like to set up some WMV Video Streaming, using Windows 2003's Streaming
Hi I have several apps using a MPMoviePlayerController. These apps play HTTP Live streaming
I already know how to stream video from my iphone to my cocoa server.
I would like to dynamically switch the video source in a streaming video application.
I am trying to read ASCII text response from a tcp open streaming socket
RED 5 video server on Android mobile phone... Is there any Open Source port
I'd like to pull a live video feed into WPF but the MediaElement doesn't

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.