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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:33:44+00:00 2026-06-08T01:33:44+00:00

I want to write a little iOS video client and have to use HTTP

  • 0

I want to write a little iOS video client and have to use HTTP Live Streaming. The videos come from a Wowza Media Server which supports HTTP Live Streaming, so the server-side implementation is not my problem.
I have already watch the WWDC videos and read the Apple documentation about HTTP Live Streaming.

But there is nowhere explained how to play back the videos on an iOS device. In a WWDC-talk was mentioned that there are 3 possibilities to display the videos:

  • UIWebView
  • MPMoviePlayerController
  • AVPlayerItem

Which one is the best?

And how can I read out the video-URL’s from a HTML-Page like these, which become provided by the server?

<html>
<head>
    <title>HTTP Live Streaming Example</title>
</head>
<body>
    <video
        src="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"
        height="300" width="400"
    >
    </video>
</body>
</html>

(Source: Apple HTTP Live Streaming Overview)

I really don’t know where to start with coding…Maybe somebody know better example code than the annoying “Stitched Stream Player” or can write a little tutorial.

  • 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-08T01:33:45+00:00Added an answer on June 8, 2026 at 1:33 am

    A short and to the point implementation. The included URL points to a valid stream (as of 12/15/2015), but you can just replace with your own URL to a .m3u8 file.

    Objective-C:

    #import <MediaPlayer/MediaPlayer.h>
    @interface ViewController ()
    @property (strong, nonatomic) MPMoviePlayerController *streamPlayer;
    @end
    
    @implementation ViewController
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        NSURL *streamURL = [NSURL URLWithString:@"http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8"];
    
        _streamPlayer = [[MPMoviePlayerController alloc] initWithContentURL:streamURL];
    
        // depending on your implementation your view may not have it's bounds set here
        // in that case consider calling the following 4 msgs later
        [self.streamPlayer.view setFrame: self.view.bounds];
    
        self.streamPlayer.controlStyle = MPMovieControlStyleEmbedded;
    
        [self.view addSubview: self.streamPlayer.view];
    
        [self.streamPlayer play];
    }
    
    - (void)dealloc
    {
         // if non-ARC
        // [_streamPlayer release];
        // [super dealloc];
    }
    
    @end
    

    Swift:

    import UIKit
    import MediaPlayer
    
    class ViewController: UIViewController {
    
         var streamPlayer : MPMoviePlayerController =  MPMoviePlayerController(contentURL: NSURL(string:"http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8"))
    
         //Let's play
         override func viewDidLoad() {
             super.viewDidLoad()
             // Do any additional setup after loading the view, typically from a nib.
             streamPlayer.view.frame = self.view.bounds
             self.view.addSubview(streamPlayer.view)
    
             streamPlayer.fullscreen = true
             // Play the movie!
             streamPlayer.play()
        }
    
    }
    

    Updated answer for both the languages. Also MPMoviePlayerController is deprecated in iOS 9, but you can use AVPlayerViewController instead. Happy Coding.!!!

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

Sidebar

Related Questions

I want to write a little function to generate samples from appropriate distributions, something
I have SBCL running on a Ubuntu machine. I want to write a little
I want to write a little DBQuery function in perl so I can have
I want write a little code analyzer which parses nested structures and translates into
I want to write a little program which is able to work with Google
I want write a simple query which will fetch data from a table (which
I want to write a little program in C to extract the PE (Entry
I want to write a little program that transforms my TeX files into HTML.
This is for a little pet project of mine. I want to write a
I want to write a little application for myself to learn C# and WPF.

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.