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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -