How to allow airplay with Bluetooth for AVPlayer? - ios

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

Related

Is it possible to filter device list displayed in AVRoutePickerView?

Our iOS app supports video streaming. We use AVRoutePickerView to give users an option to stream videos on their TV devices using Airplay connection.
Videos that we stream have some specifics that make them work without issues only on Apple TV. However there are TVs from other vendors (LG, Samsung, Sony, ...) that also have integrated Airplay support and they also show in the AVRoutePickerView.
Is there any way we can filter what AVRoutePickerView displays? Ideally we would like AVRoutePickerView to list only Apple TV devices and not other TVs.

How to get audio latency for bluetooth speaker

I'm developing application that can play local music as well youtube video and its working fine.
Now I connect my iPhone to bluetooth speaker and i want to calculate audio latency for bluetooth speaker.
How i can get latency for my connected bluetooth device?
Any suggestion or idea or article ?
Thank You.

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.

Find device type on airplay

When I press the airplay button the list of the devices that are available are shown. How do i get the device type (Apple TV , Bluetooth speaker, etc) when connecting using airplay.

Airplay with photos

I looked up the official documents for airplay, found the airplay can only support audio and video. But beside that, the native photos app can airplay photos. So is there any methods to airplay photos? BTW, I know the "mirroring" mode can do this job: I can detect 2 screens in my code and present a different screen to the iOS device's in this mode. However, the "mirroring" mode only exists in iPad 2, new iPad and iPhone 4S...
I found solution here
http://livevision.us/wordpress/2011/02/16/airplay-without-private-api/
and
How to find the IP-address of the active AirPlay device?
I could send some UIImage to apple TV.
but I don't know if apple allows using these Unoffical Airplay protocol.
It is documented on Apple's site. When the user enables airplay mirroring, your app will find two UIScreen:s. It's quite simple.
Here's a sample app http://developer.apple.com/library/ios/samplecode/GLAirplay/Introduction/Intro.html

Resources