Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do screen mirroring using AirPlay from the application (not from control panel) in iOS?

I am using MPVolumeView to show AirPlay button. I need to show a custom wallpaper to Apple TV through mirroring with audio. Audio is playing properly on Apple TV but wallpaper image is not showing. I am using AVAudioController for playing audio. I have checked YouTube application in which screen mirroring is working from application for video playing. Is it possible to screen mirroring within the app using AVAudioController ?

Help me to solve this issue. Thanks in advance.

like image 921
Mukesh2421 Avatar asked Apr 29 '14 05:04

Mukesh2421


People also ask

Why is there no screen mirroring option on my iPhone?

Try these steps firstMake sure that your AirPlay-compatible devices are turned on and near each other. Check that the devices are updated to the latest software and are on the same Wi-Fi network. Restart the devices that you want to use with AirPlay or screen mirroring.

How do I use AirPlay instead of mirror?

To AirPlay photos and videos from your iPhone to your Apple TV, make sure AirPlay is enabled on your Apple TV. Then tap the AirPlay button on your iPhone and choose your TV. Finally, enter the code displayed on your TV. Connect both your iPhone and your TV to the same WiFi network.


1 Answers

Unfortunately, external display associated with AirPlay will only become active (and post appropriate notification) when you enable AirPlay mirroring in control panel. There appears to be no way to enable mirroring programmatically.

MPVolumeView can help user redirect audio to AirPlay speakers, it has nothing to do with display mirroring.

like image 179
Leon Deriglazov Avatar answered Oct 22 '22 03:10

Leon Deriglazov