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

  • SEARCH
  • Home
  • 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 6693379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:58:34+00:00 2026-05-26T05:58:34+00:00

I have a simple HTTP server running that pretty much just serves an MP3

  • 0

I have a simple HTTP server running that pretty much just serves an MP3 file in chunks of equal size. I’m writing an iOS app (for testing purposes), that basically takes a URL and streams the file through MPMovieController. Here’s my sample code:

MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] init];
[mp setMovieSourceType:MPMovieSourceTypeStreaming];
mp.contentURL = [NSURL URLWithString:@"http://127.0.0.1:8080"];
[mp play];

It works. BUT: on my http server I see multiple connections (first one breaks right away, second one streams to the end usually, although sometimes there is 3rd connection).

I know it’s not the server issue, since when I do this:

NSData *myData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://127.0.0.1:8080"]];

…then there’s only 1 connection that finishes reading and disconnects.

The question is: Why does MPMoviePlayerController need to establish and break those connections before finishing reading the file, why doesn’t it just keep waiting for more data to be written on the socket? I haven’t been able to find any relevant docs that would explain this 🙁

P.S. If you are curious why I need this, here’s a short explanation: I’m trying to emulate real life network scenarios where bytes are received by the MPMovieController in chunks with small delays of random length in between

  • 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-26T05:58:34+00:00Added an answer on May 26, 2026 at 5:58 am

    You need to modify your server and add support for HTTP 206 Partial Content requests/responses. iOS requests movie data over HTTP this way.

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

Sidebar

Related Questions

I have a simple web site ( http://www.kousenit.com/twitterfollowervalue ) that computes a quantity based
I have a simple test application (C# console application) that does an HTTP GET
I have a simple tornado server running like this: import json import suds from
I have created a simple chat server that is driven by client polling. Clients
I have a fairly simple process running that periodically pulls RSS feeds and updates
I have a PHP script (running on a Linux server) that ouputs the names
I have the following simple http server using Node.js: var http = require('http'); var
I have a base URL : http://my.server.com/folder/directory/sample And a relative one : ../../other/path How
I have an Asp .net page like this simple one http://issamsoft.com/app2/page1.aspx and I want
I have a fairly simple addition to the HTTP standard. An ambitious goal I

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.