Simon Mac Donald
http://hi.im/simonmacdonald
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
Would this be basically a phone listener plugin?
You will want to use "sendJavascript". So for example in your JS you
can have onCallReceived method, and in there you will handle the pause
of your audio:
var PhoneListenerPlugin = {
onCallReceived: function() {
// pause media and stuff
}
};
Then in your Java plugin:
this.sendJavascript("navigator.plugins.phoneListener.onCallReceived()");
--
Pablo Martí
http://www.linkedin.com/in/pmarti
python -c "print '706d617267616d40676d61696c2e636f6d'.decode('hex')"
Oops, this should be
this.sendJavascript("window.plugins.phoneListener.onCallReceived()");
--
--
Hi there thank you for posting this question. I would really like the solution you found for this problem i have been working on it for the last week with no success. Could you please post or send me the code on how you succeeded.
Ok audio still plays when a phine call comes in but what worked for me is adding the pause and resume events listeners.
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com