AirPlay: Play Video on TV and audio on iPhone - ios

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 ?

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?

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.

MPMovieplayercontroller on both airplay and idevice

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.

Native iOS music player pauses when playing HTML5 audio

My Google-Fu has failed me.
Is it possible for the native iOS music player to NOT pause when playing a sound from within an HTML5 web app? I know native apps don't have this problem but am struggling with HTML5.
(Using iOS6).
Please, see this topic: iPod - Let the native music app to play sound in background. I've used the same approach to allow iPod music playback while game playing with embedded ambients and sounds.

Resources