ios - How to display overlay on Apple TV via AirPlay -


i developing ios app displays video, e.g., football game, on apple tv via airplay. want display additional information, e.g., player stats, on big screen while video playing.

i aware of redfin approach, require user turn on airplay mirroring first. unfortunately, not acceptable us. want obvious users on how show video.

we presenting airplay route button before displaying video allow user set using following code.

self.airplaypicker = [[mpvolumeview alloc] initwithframe:cgrectmake(0, 0, 50, 50)]; self.airplaypicker.showsvolumeslider = no; self.airplaypicker.showsroutebutton = yes; [self.view addsubview:self.airplaypicker]; 

the route button show when there apple tv around, allowing user turn on. present video mpmovieplayercontroller.

when airplay turned on , video playing, in code, see 1 uiscreen, 2 uiwindows. both uiwindows have same dimensions iphone. when add subview either uiwindow, subview shows on iphone.

has figured out how present overlay on top of video on apple tv? how find view object video hosted?

i aware mpmovieplayercontroller built on top of avplayer. using avplayer give better control of ui?

as far know, shouldn't possible. when using airplay without mirroring, url of video sent apple tv. apple tv play media.

mirroring way it.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -