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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:50:30+00:00 2026-05-29T20:50:30+00:00

I have an app that streams video from the net and plays it using

  • 0

I have an app that streams video from the net and plays it using an MPMoviePlayerController object for playback on the device or via AirPlay.

The app supports background operation and has the ‘audio’ option listed within the required UIBackgroundModes key in its plist file.

When playing over AirPlay, the app can successfully be pushed to the background and the video continues to play properly. So far, so good.

According to the Apple documentation:

Including the audio key tells the system frameworks that they should
continue playing and make the necessary callbacks to the app at
appropriate intervals. If the app does not include this key, any audio
being played by the app stops when the app moves to the background.

However, these callbacks are not being made.

The app uses two types of callback: those associated with notifications MPMoviePlayerController and AVPlayer send during playback together with timer based callbacks that monitor the playback position and performance stats for monitoring purposes.

Looking at Apple’s notes, I would certainly expect to receive the first type of callback so that the app can respond to MPMoviePlayerPlaybackStateDidChangeNotification, MPMoviePlayerPlaybackDidFinishNotification and MPMoviePlayerLoadStateDidChangeNotification, but this doesn’t happen.

Does anyone know if it is possible to receive these during background AirPlay playback and, if so, how was this achieved?

**Please note: the app works correctly when running in the foreground and receives the notifications fine. It is only when pushed to the background and playing over AirPlay that the notifications are not received.

Likewise, the video plays over AirPlay in the background properly. It is only the notifications which are not received**

  • 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-29T20:50:32+00:00Added an answer on May 29, 2026 at 8:50 pm

    For completeness, I ought to add that at present I believe there is no solution to this problem.

    I’ve discussed it directly with Apple via tech support and there was no practical work-around available.

    This functionality was needed to allow the app to record stats about the playback of the stream at regular intervals. While this is fine when the video is played on the device’s screen and over AirPlay while the app is in the foreground, it isn’t possible to do with the app in the background.

    The solution I’ve gone with instead is to disable the idle timer during all types of playback and to re-enable afterwards using:

    [UIApplication sharedApplication].idleTimerDisabled = YES;
    

    and

    [UIApplication sharedApplication].idleTimerDisabled = NO;
    

    While this isn’t a solution to the original question, it’s a workaround for avoiding the issue in the first place.

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

Sidebar

Related Questions

I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have a simple Samsung Smart TV app that plays a series of video
Ok I have made a simple radio app that streams music from my university
I have an app that executes commands on a Linux server via SSH just
I have a app that I'm deploying to a development server using Capistrano. I'd
I have an application that streams videos from my server. The thing is I
I have created an app that sends some data via bluetooth and my app
I'm hoping to make an app that streams live video that has a view
I have an iPad app that records video and sends it to my SaaS
I have written an iPhone and iPad app that should streams e.g. 4 videos

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.