I feel a little silly,
i did not found a proper event to realize that the phone is ringing and i would like to stop my sound streaming application and set the button to pause.
Someone knows the property ?
does the iPHONE not pause the sound player automatically when there is a phone call?
I think this is suppose to be a "feature" in iOS4 so apps like GPS can give directions while your in call. I'm not sure if there is a way to turn of the sound, maybe pause the app? Tho this shouldn't be happening with an appcelerator app sine it doesn't support fast switching?
Add event listener using function 'addEventListener' for the event 'interrupted'.
Basically 'interrupted' event called when the audio is interrupted by the device. this is typically called during an interruption due to an incoming phone call.
Let me know if you still face the issue.