[jitsi-dev] jitsi-android: Opening jitsi and placing calls from URL


#1

Dear devs,

I'm prototyping something where I'd like to have my application be able to
automatically open up Jitsi to place audio calls, video calls or open up to
the messaging screen for a certain contact. I'm using the xmpp: URL-scheme
specifying a contact and then the mode of communications, as in:

xmpp:user@server.com?call or xmpp:user@server.com?video or xmpp:user@server.com?message

I've added code to Jitsi to handle URLs and I've made it automatically place
audio calls by calling AndroidCallUtil.createCall().

However, I'm having trouble finding appropriate entry points for starting a
video call or opening the messaging screen.

I've found entry points if you have your hands on the index entry in the
contacts list, but not if you have the actual user@server.com string.

Can someone point me in the right direction here?

Thanks,

--Jim Dempsey--


#2

Hi,

Dear devs,

I'm prototyping something where I'd like to have my application be able to
automatically open up Jitsi to place audio calls, video calls or open up to
the messaging screen for a certain contact. I'm using the xmpp: URL-scheme
specifying a contact and then the mode of communications, as in:

xmpp:user@server.com?call or xmpp:user@server.com?video or xmpp:user@server.com?message

I've added code to Jitsi to handle URLs and I've made it automatically place
audio calls by calling AndroidCallUtil.createCall().

However, I'm having trouble finding appropriate entry points for starting a
video call or opening the messaging screen.

I've found entry points if you have your hands on the index entry in the
contacts list, but not if you have the actual user@server.com string.

Can someone point me in the right direction here?

There is currently no entry point for starting video call, but you can
easily do it by replacing CallManager.createCall(provider,
destination); with CallManager.createVideoCall(provider, destination).
It's at AndroidCallUtil:118.

To start a chat you need chat intent which can be created with static
method ChatSessionManager.getChatIntent().

Regards,
Pawel

···

On Mon, Feb 24, 2014 at 7:45 PM, James J Dempsey <jjd+jitsi@jjd.com> wrote:


#3

That sounds interesting!

···

On Mon, Feb 24, 2014 at 10:45 AM, James J Dempsey <jjd+jitsi@jjd.com> wrote:

Dear devs,

I'm prototyping something where I'd like to have my application be able to
automatically open up Jitsi to place audio calls, video calls or open up to
the messaging screen for a certain contact. I'm using the xmpp: URL-scheme
specifying a contact and then the mode of communications, as in:

xmpp:user@server.com?call or xmpp:user@server.com?video or xmpp:user@server.com?message

I've added code to Jitsi to handle URLs and I've made it automatically place
audio calls by calling AndroidCallUtil.createCall().

However, I'm having trouble finding appropriate entry points for starting a
video call or opening the messaging screen.

I've found entry points if you have your hands on the index entry in the
contacts list, but not if you have the actual user@server.com string.

Can someone point me in the right direction here?

Thanks,

--Jim Dempsey--

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev