Sample code to add to any controller which should handle audio session route changed event. Note that you should use only the functions in .m file since this is just a sample code.

Reference: MPMoviePlayerController - Auto-Resume on headphone plugged in 

Hubert 發表在 痞客邦 留言(0) 人氣()