thank you very much for the super fast reply. I think I am getting
better navigating through the code. I have one quick question though:
The code references a data member (I am sure there is a better term for
called "jingle". Which holds all the acquired media (jingle) related
parameters: pc_constraints, localStream, terminatedByJid, etc.
Strophe library I am looking at doesn't mention "jingle" member
of the Strophe.Connection object.
Could you please refer me to the documentation of the Strophe library
which has the description of the "jingle" in the Strophe.Connection.
Or at least a description of the "jingle" object.
This is a strophe plugin -- coming from https://github.com/ESTOS/strophe.jingle
http:/professionalxmpp.com/profxmpp_ch14.pdf has some more documentation on how those work in general.
There are only a few methods you can call....
.initiate(peerjid, myjid) -- initiates a jingle session to peerjid, using myjid as sender where appropriate (typically myjid should default to the connection.jid, unless you're in a multiuser chatroom -- will fix that later today)
.terminate(sid, reason, text) -- terminates a jingle session based on a jingle session id (or all sessions if sid is null).
.terminateByJid -- terminates a jingle session based on a peer jid. Typically this happens when you get an unavailable presence from a peer (i.e. the peer closed the browser window without hanging up)
In addition to that this generates a number of events, most notably callingcoming.jingle. https://github.com/ESTOS/strophe.jingle/blob/master/examples/muc.js has examples how to use those, the README.md lists all available events.
Am 28.12.2013 04:23, schrieb Yan Brenman: