views:

56

answers:

2

Hi there,

I'm currently developing a web-tv application that uses MPMoviePlayerViewController resp. MPMoviePlayer to playback streaming video content on the iphone.

the issue I've got here is that once i unplug my headphones (while watching tv) the player stops. Due to the fact that I'm not showing the standard controls (previous button, play/pause button, next button) but my custom controlls, the user is stuck with the frozen picture unless he switches to a new channel..

is there any way to detect a playback interuption caused by unplugging the headphones?

thanks for your tipps and tricks in advance,

sam

A: 

Hi,

I don't have a direct answer to your question. But I think MPMoviePlayerPlaybackStateDidChangeNotification will be good enough to solve your issue. Once you are notified, Get the playback state from the playbackState property of the movie player object and take appropriate action.

Manu
A: 

It must stop since mediaplayer it inherit from Corevideo internally removing the head phones interrupt

jeeva