Remove QuickTime logo while AirPlay - ios

In my iOS app, I use MPMoviePlayerController for video playback. When I enable AirPlay, there is a QuickTime logo, which I would like to remove, superimposes on the AirPlay background.
It only happens with my app on iOS 7.0.4. On iOS versions prior to 7.0.4 such as 7.0.0 or 6.1, there is no QuickTime logo shown, the AirPlay background is displayed as usual.
Anyone has any ideas why the QuickTime logo is there and how we could remove it?
To be clear, I used video content for playback, not audio-only content; and I'm talking about the background view when using AirPlay only.
Thanks!

Related

Background audio not work with Ionic3 + Videogular2 on iOS

I'm using Videogular2 in an Angular/Cordova/Ionic3 project, where I play mp3 audio live streams. All works good with mp3 and mp4, on browser and iOS simulator.
When the user Lock The Screen in iOS Device I expect that the audio continues to play in a background mode, but on IOS when the user Lock The Screen audio stop to play.
I've tested on XCODE 8 to set 'Capabilities' tab adding 'audio' parameter, I've added cordova-plugin-backgroundaudio to the project without success.
On iOS Simulator it works well, the problem occurs only on iOS Device.
Tested on iPhone 6 & iPad 3.
I'm using:
iOS 10.3.3
XCODE 8.3.3
Ionic 3.12.1
Videogular2 5.4.11
No one else used videogular2 on cordova/ionic?
In iOS app audio won't be playing in background when the device is locked. For that you have to enable the background mode for the app. I had faced the same issue in one of my application (I was using different audio plugin).
In order to enable background mode in iOS you can use below plugin
https://ionicframework.com/docs/native/background-mode/. When you start playing the audio you just need to call backgroundMode.enable() to keep it playing in background. When you leave the audio player page if want you can disable background mode to avoid unnecessarily keeping the background mode on by calling backgroundMode.disable().
Additionally you need to enable the background audio feature in xcode project settings as shown in below link.
https://koenig-media.raywenderlich.com/uploads/2016/09/BM-EnableAudioInBG.png

How to implement airplay in an iOS app for streaming video on Apple TV

I am working on an iOS app with video streaming. My requirement is that I want to stream video content on Apple TV using Airplay, also streaming should continue even if my phone gets locked / app enters background state.
Thanks in advance.

Stream video via AirPlay without affecting app?

I have a native app and would like to stream video to an Apple TV over AirPlay, but without affecting the app screen. The video should NOT to be shown on the app screen -- only on the Apple TV.
Is this possible in iOS 7?
Yes, it is possible:
If you use AirPlay to allow users to redirect content to an external
device display, you can either mirror the current app content on the
second display or show different content on it.

How to continue play html5 audio when screen locked?

I have an audio element in the UIWebView, but when I lock the screen, the audio will be paused. How can I continue to play it when the screen locked?
If you are talking about iOS devices, then as long as you do not bookmark the site to the home screen and Safari is open and playing the audio, it will continue to play when the screen locks. Only if you try to multi-task will it shut off the sound on your page.
You must ensure that background audio is enabled in your iOS app. You can find a sample project here https://github.com/jsagorin/iOSBackgroundAudio

allowsAirPlay not showing Air Play button in MPMoviePlayerViewController

I'm using an MPMoviePlayerViewController to play a video. I set the instance's moviePlayer.allowsAirPlay to true as it is false by default. However, the Air Play button never shows up in the player controls. Could I have done something wrong, or are there specific guidelines for Air Play? The videos are 640x480, file types AVFileTypeQuickTimeMovie, .mov extension, H264, and PCM audio.
Does an AirPlay device need to be in the vicinity before the button even shows up? I don't have an airplay device, but am an app developer and want to make sure my users can do so if they have such a device.
OK, apparently the way it works is it checks for AirPlay compatible devices when loading, so the button does not appear unless some are available.

Resources