ios - How to find available screens with AirPlay? -


i trying detect when airplay device available on network , if there one, i'd display list.

for example, app "dailymotion" want : when connect iphone network apple tv, "airplay" icon appears : https://dl.dropbox.com/u/4534662/photo%2004-03-13%2010%2007%2014.png (just next hd)

and then, when clicking on airplay icon, picker shows available airplay devices : https://dl.dropbox.com/u/4534662/photo%2004-03-13%2010%2007%2018.png

i didn't find way apple documentation. so, how can programmatically?

you can display airplay picker view (if airplay available) so:

mpvolumeview *volumeview = [ [mpvolumeview alloc] init] ; [volumeview setshowsvolumeslider:no]; [volumeview sizetofit]; [view addsubview:volumeview]; 

the mpvolumeview displays available airplay devices. code above disables volume slider, may or may not want do. can't programatic access airplay device information.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -