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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:24:56+00:00 2026-05-13T15:24:56+00:00

I’m hoping to make an app that streams live video that has a view

  • 0

I’m hoping to make an app that streams live video that has a view placed on top with labels and a button on it.

From my research and testing of the http video streaming feature (available since iPhone 3.0 OS), it seems that you create a webview that points to the index html that contains the converted video stream, and this displays as a quicktime video in the app. This means that I don’t have control over the Media Player that is opened. Does anyone know how you can control this?

I know that the Apple’s MoviePlayer sample code shows you how to place views on top of a MediaPlayer video, but how can this be done with a http live stream?

Thanks in advance.

  • 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-13T15:24:56+00:00Added an answer on May 13, 2026 at 3:24 pm

    Im now just having a problem displaying a view/label/button on top of the movieplayer video. In Apple’s MoviePlayer sample project, you can add a view on top of the video with this code:

    MoviePlayerAppDelegate *appDelegate = (MoviePlayerAppDelegate *)[[UIApplication sharedApplication] delegate];     
    
    // initialize a new MPMoviePlayerController object with the specified URL, and play the movie
    [appDelegate initAndPlayMovie:[self localMovieURL]];
    
    NSArray *windows = [[UIApplication sharedApplication] windows];
    
    if ([windows count] > 1) {
         // Locate the movie player window
         UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
    
         // Add our overlay view to the movie player's subviews so it is displayed above it.
         [moviePlayerWindow addSubview:self.overlayView];
    }
    

    The overlayview is a view that contains the requested label and button. However, when I apply the same code to a movie url containing the .m3u8 file it doesn’t display the overlay view e.g.http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

    NSURL *newMovieURL = [NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8">];
    
    if (movieURL) {
         NSLog(@"movieURL");
    
         if ([movieURL scheme])     // sanity check on the URL
         { NSLog(@"[movieURL scheme]");
              [appDelegate initAndPlayMovie:newMovieURL];
    
              NSArray *windows = [[UIApplication sharedApplication] windows];
              NSLog(@"windows count:%d", [windows count]);
    
           if ([windows count] > 1) {
              UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
              [moviePlayerWindow addSubview:self.overlayView];
              }
         }
         else NSLog(@"![movieURL scheme]"); } else
         NSLog(@"!movieURL");
    

    The number of windows returned is just 1, as opposed to 2 in the previous example, even though the movie plays. When I check the url to see if it was ok, the movieURL returns null, but it still plays the streamed content. I tried removing the check for window count being greater than 1 but it still didnt display the overlay view.

    Does anybody know a way around this? Thanks

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a view passing on information from a database: def serve_article(request, id): served_article
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters

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.