MPMovieplayercontroller on both airplay and idevice - ios

Is it possible to show the video (synced) on both your iDevice and airplay?
I am using the AVPlayer class now to start a new stream on the apple tv, but I can't get it to sync with the MPMovieplayer I am using to show the video on the iDevice.

Related

Hide/update AVPlayer controls on AirPlay device

Is there any way to Hide or Update the AVPlayer controls panel when AirPlay is turned on on the TV device?

AirPlay: Play Video on TV and audio on iPhone

In my app I have music playing, through Spotify Music or Apple Music, coach voice playing and a muted Video playing at the same time.
Is it possible to play Video on TV and audio on iPhone or Video and Audio on TV ?

How to allow airplay with Bluetooth for AVPlayer?

I have an app which is using AVPlayer. It can cast video to apple TV by Airplay when they are in the same network, but if I set apple TV and iphone in different network, the airplay via bluetooth doesn't work well. The screen will flash once and play on local device. Any idea? Thanks

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.

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