Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Iphone Phone call

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 ?

thank u
Andrea

— asked June 25th 2010 by Andrea S
  • call
  • iphone
  • ringing
1 Comment
  • Andrea! did you find the solution? i also couldn't find a proper event to know that the phone is ringing… let me know if you could find the solution. thanks in advance!

    — commented October 7th 2010 by Baital Raj

3 Answers

  • does the iPHONE not pause the sound player automatically when there is a phone call?

    — answered June 25th 2010 by vincent youmans
    permalink
    1 Comment
    • yes it does, but my "play" button is still enebaled and i wish to put in "pause" to restore the play….
      but i do not an event for it….

      — commented June 26th 2010 by Andrea S
  • 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?

    — answered June 25th 2010 by Sj Singh
    permalink
    0 Comments
  • 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.

    — answered October 7th 2010 by Baital Raj
    permalink
    1 Comment
    • 'interrupted' is only available on Titanium.Media.Sound, not Titanium.Media.createAudioPlayer, so can't be used to detect an incoming call when streaming - an omission?

      — commented December 7th 2011 by Patrick Mounteney
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.