ios - Disable AirPlay with MPMoviePlayerController -


i have instance of mpmovieplayercontroller being used display live streaming video on iphone app. working fine, wish remove airplay functionality.

to sure, disable airplay so:

if([self.movieplayercontroller respondstoselector:@selector(setallowsairplay:)]) {     self.movieplayercontroller.allowsairplay = no; } 

however, code, still see airplay icon on video controls. if select this, , select appletv, audio sent on airplay - video continues play within app. if set allowsairplay yes, both video & audio sent on airplay.

does know why happens? feature of os, allows allow audio sent on airplay?

it turns out airplay icon still visible (and should remain visible) audio can routed suitable device, eg. bluetooth headset. attempting hide icon considered bad practice.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -