Jingle

288 views
Skip to first unread message

PGP Chicago

unread,
Jan 20, 2010, 4:48:19 PM1/20/10
to str...@googlegroups.com
All,

Do any of you know of a Javascript based Jingle library for initiating a voice chat between two users via XMPP?

Thanks

Jack Moffitt

unread,
Jan 20, 2010, 11:03:54 PM1/20/10
to str...@googlegroups.com
> Do any of you know of a Javascript based Jingle library for initiating a
> voice chat between two users via XMPP?

JavaScript does not have any native multi-media or socket APIs (aside
from the nascent WebSockets proposal). This would make a
pure-JavaScript solution nearly impossible with current browsers.
You'd need some assistance from browser plugins or a plugin system
like Flash or Silverlight or ActiveX.

I do not know of anyone currently working on this.

I believe Gtalk works by using Flash for this purpose, but I haven't
actually tested it myself. I don't think I've ever seen interactive
voice or video streaming in pure JavaScript in a browser before.

jack.

Pedro Melo

unread,
Jan 21, 2010, 6:44:17 AM1/21/10
to str...@googlegroups.com
Hi,

On Thu, Jan 21, 2010 at 4:03 AM, Jack Moffitt <meta...@gmail.com> wrote:
> JavaScript does not have any native multi-media or socket APIs (aside
> from the nascent WebSockets proposal). This would make a
> pure-JavaScript solution nearly impossible with current browsers.
> You'd need some assistance from browser plugins or a plugin system
> like Flash or Silverlight or ActiveX.
>
> I do not know of anyone currently working on this.

Yes. There is a <device> tag in the WHAT WG (post HTML5) that is
expected to connect to webcams and mics, and send the output over some
future protocol (last I checked an expansion of WebSockets for
low-latency binary data, whatever that means...).

But that is in the future, at the rate things are changing, I would
say 1 or 2 years :)

> I believe Gtalk works by using Flash for this purpose, but I haven't
> actually tested it myself. I don't think I've ever seen interactive
> voice or video streaming in pure JavaScript in a browser before.

Yes, GTalk uses a mixture of Flash, and Plugins (on the Mac they even
include a QuickTime component) to implement their in-browser A/V
stuff.

Bye,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:me...@simplicidade.org
mailto:me...@simplicidade.org

Michael R. Bernstein

unread,
Jan 21, 2010, 8:09:44 AM1/21/10
to str...@googlegroups.com

In *theory* the proposed extensions to HTML5 for supporting external
devices like webcams and microphones could do the trick, but even after
someone deploys a decent working implementation it would probably be a
year or two before we could expect to use these features in user-facing
apps.
--
Michael R. Bernstein <mic...@fandomhome.com>

signature.asc

Michal Mach

unread,
Feb 8, 2010, 6:43:00 AM2/8/10
to Strophe
Hi,

maybe it's not the right place to ask, but how could one implement
audio/video
features into his web application?
I would like to use strophe for the jingle part and flash for audio/
video.
(video streaming trough red5 server)

Thanks

> voice orvideostreaming in pure JavaScript in a browser before.
>
> jack.

Jack Moffitt

unread,
Feb 23, 2010, 1:08:14 PM2/23/10
to str...@googlegroups.com
> maybe it's not the right place to ask, but how could one implement
> audio/video
> features into his web application?
> I would like to use strophe for the jingle part and flash for audio/
> video.
> (video streaming trough red5 server)

I suspect you'd do the negotiation in XMPP with Jingle, then pass the
media pointers to the Flash pluign which could fetch and render them.
I don't know of anything off the shelf to help you in this regard.
Flash has a limited amount of codec support, so you might be stuck
with a small subset of available codecs that you can support.

jack.

Michal Mach

unread,
Feb 24, 2010, 10:14:39 AM2/24/10
to str...@googlegroups.com
Thanks.

Yeah, i still can't find anything which could help me in this regard.
Maybe there is a gap to fill? :-)



jack.

--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/strophe?hl=en.


Olemis Lang

unread,
Nov 7, 2011, 10:13:16 AM11/7/11
to PGP Chicago, str...@googlegroups.com, Olemis Lang

Almost two years later I'd like to know if there is any progress on
this subject . I mean, is there any (preferably open source) Jingle
addon / plugin / ... to use it on top of Strophe library ?

If not at all , then is there anybody out there working on getting
this done ?
Finally , is there anybody willing to join a (FLOSS!) project ... and
contribute with code patches ... so as to get this done ?

Looking forward to your questions hoping there is a way out of the
dark ... somewhere
Thnx in advance !

--
Regards,

Olemis

Facebook => http://www.facebook.com/olemis
Twitter => http://www.twitter.com/olemislc (@olemislc)
Blog ES => http://simelo-es.blogspot.com
Blog EN => http://simelo-en.blogspot.com
Quora => http://www.quora.com/olemis
Youtube => http://youtube.com/user/greatsoftw

Featured article : Tutorial - Eliminando cookies, cache y otros datos
privados de navegadores web en Windows
http://feedproxy.google.com/~r/simelo-news/~3/MrK2in_f-bc/tutorial-eliminando-cookies-cache-y.html

Tweet:
Follow @olemislc Reply Retweet 08:43 Nov-04
Get this email app!
Get a signature like this. CLICK HERE.

Bob (GoCast)

unread,
Dec 13, 2011, 7:22:20 PM12/13/11
to str...@googlegroups.com, PGP Chicago, Olemis Lang
Hey Olemis,

webrtc is the technology you're looking for in my estimation. It's "in the works" and very open - however it isn't in any browsers natively yet. I'm part of a small group which has harnessed webrtc for use as an audio (and video - release coming later today I think) as a plugin into existing browsers. It uses Javascript to expose the connectivity and make calls etc. It allows multi-way audio/video p2p as well. The webrtc project is quite large and encompassing - and eventually our browser plug-in will be completely unnecessary, but it's a nice way to get started and understand as well as develop features that you want on top of what we've done. It's all open source btw.

The project is at www.GoCast.it

Give it a try - let us know what ya think. We're nimble and movin' fast right now. In fact, I've joined this group to better understand how we can revise (re-invent) our signalling protocol to make it so much more robust and ready for the future. The current protocol is completely based on the webrtc 'peerconnect_server' sample code which was done as a super quick way to show off connections but was in no way meant for production. So we're heading in the production direction and looking at strophe (with websockets in the future I hope) to aid in getting a lot done quickly.

Thanks!
Bob Wolff - GoCast.it

Michael

unread,
Dec 14, 2011, 2:53:24 AM12/14/11
to Strophe
Hey Bob,

Very interesting. I hope I can give it a try anytime soon!

- Michael

--
Developer of Candy, XMPP Client built on Strophe.js
See http://candy-chat.github.com/candy

On 14 Dez., 01:22, "Bob (GoCast)" <rwo...@gocast.it> wrote:
> Hey Olemis,
>
> webrtc is the technology you're looking for in my estimation. It's "in the
> works" and very open - however it isn't in any browsers natively yet. I'm
> part of a small group which has harnessed webrtc for use as an audio (and
> video - release coming later today I think) as a plugin into existing
> browsers. It uses Javascript to expose the connectivity and make calls etc.
> It allows multi-way audio/video p2p as well. The webrtc project is quite
> large and encompassing - and eventually our browser plug-in will be
> completely unnecessary, but it's a nice way to get started and understand
> as well as develop features that you want on top of what we've done. It's
> all open source btw.
>

> The project is atwww.GoCast.it<http://www.gocast.it/?utm_source=groups&utm_medium=strophe&utm_campai...>

Michael

unread,
Dec 20, 2011, 8:34:44 AM12/20/11
to Strophe
Hi all,

I'm currently trying to implement the Jingle Protocol as a Strophe
plugin because WebRTC is gaining traction.
The problem I'm facing is simply that Peer2PeerConnection is not
implemented anywhere besides the custom build of ericsson labs which
runs only on ubuntu.

So @Bob: Peer2PeerConnection would be really nice to have :)

- Michael

Olemis Lang

unread,
Dec 20, 2011, 9:17:31 AM12/20/11
to str...@googlegroups.com

On Tue, Dec 20, 2011 at 8:34 AM, Michael <michael...@gmail.com> wrote:
Hi all,


Hi!
 
I'm currently trying to implement the Jingle Protocol as a Strophe
plugin because WebRTC is gaining traction.


cool !
Is the (your?) Jingle signalling code publicly available (a repository?) somewhere ?
It'd be nice to review it and participate , please share , if possible ...
;)
 

Michael

unread,
Dec 20, 2011, 9:28:10 AM12/20/11
to Strophe
Hi,

Atm not, but I'll push it asap into my github strophejs-plugins repos:
https://github.com/mweibel/strophejs-plugins

I'll notify here again.
But be aware: I didn't do a lot yet, I just built a session-initiate
using Strophe.$iq and stumbled upon the problem that I can't get my
own ip address using javascript ;)

-Michael

On 20 Dez., 15:17, Olemis Lang <ole...@gmail.com> wrote:


> On Tue, Dec 20, 2011 at 8:34 AM, Michael <michael.wei...@gmail.com> wrote:
> > Hi all,
>
> Hi!
>
> > I'm currently trying to implement the Jingle Protocol as a Strophe
> > plugin because WebRTC is gaining traction.
>
> cool !
> Is the (your?) Jingle signalling code publicly available (a
> repository?) somewhere ?
> It'd be nice to review it and participate , please share , if possible ...
> ;)
>
> --
> Regards,
>
> Olemis
>
> Facebook =>http://www.facebook.com/olemis
> Twitter =>http://www.twitter.com/olemislc(@olemislc)
> Blog ES =>http://simelo-es.blogspot.com
> Blog EN =>http://simelo-en.blogspot.com
> Quora =>http://www.quora.com/olemis
> Youtube =>http://youtube.com/user/greatsoftw
>   Get a signature like this.

> <http://r1.wisestamp.com/r/landing?promo=17&dest=http%3A%2F%2Fwww.wise...>
> CLICK
> HERE.<http://r1.wisestamp.com/r/landing?promo=17&dest=http%3A%2F%2Fwww.wise...>

Olemis Lang

unread,
Dec 20, 2011, 9:40:54 AM12/20/11
to str...@googlegroups.com
On Tue, Dec 20, 2011 at 9:28 AM, Michael <michael...@gmail.com> wrote:
>
> Hi,
>

Hi !

>
> Atm not, but I'll push it asap into my github strophejs-plugins repos:
> https://github.com/mweibel/strophejs-plugins
>

ok thnx !

>
> I'll notify here again.

;)

>
> But be aware: I didn't do a lot yet, I just built a session-initiate
> using Strophe.$iq and stumbled upon the problem that I can't get my
> own ip address using javascript ;)
>

ok ... once you submit something , maybe (if time available ;) I'll follow
;)

--
Regards,

Olemis

Featured article : Personalizando imagenes mostradas al compartir
páginas en sitios sociales
Get a signature like this. CLICK HERE.

Michael

unread,
Dec 21, 2011, 2:20:31 AM12/21/11
to Strophe
It's published now
https://github.com/mweibel/strophejs-plugins/tree/jingle

On 20 Dez., 15:40, Olemis Lang <ole...@gmail.com> wrote:

Steffen Larsen

unread,
Dec 21, 2011, 3:19:19 AM12/21/11
to str...@googlegroups.com
Hi,

Heh yeah, the ip address is one problem, the other problem is the data channel. How will this be implemented?
For google talk, I think google is using a combination of javascript and flash for the signaling channel (XMPP) and the data channel (stream).

You could probably use web sockets for the data channel and other HTML5 elements for displaying the actual video stream (video tag etc), but I am not sure that it is fast and reliable enough. And how about codecs etc?… I am not trying to shoot anything down here, I am just interested in the design and how it will put together.

-Cheers!
/Steffen

Steffen Larsen

unread,
Dec 21, 2011, 3:26:02 AM12/21/11
to str...@googlegroups.com
Hi again,

Ahhh I see.. I just stumbled upon you earlier thread in the mail.

You will be using webrtc for the data/media connection as well as the codecs? I notice that VP8 codec and even jitter buffer is enabled and accessible from the webrtc api. Thats nice.

Do you know which browsers that are currently supported? I see also that transport such as ICE and multiplexing is supported here. But if that is supported it should also be able to extract your local ip address and negotiate the network stuff for you (through ICE).

-Cheers
/Steffen

On Dec 20, 2011, at 3:28 PM, Michael wrote:

Michael

unread,
Dec 21, 2011, 6:17:20 AM12/21/11
to Strophe
Hi Steffen,

Yeah it's also a little bit in the stars for me at the moment. But as
you said it should be possible using webrtc (and the
Peer2PeerConnection class). There I hope I can extract the IP/Port,
too.

About the browsers: Well Ericsson Labs has published some code which
should work with Ubuntu. But I don't have ubuntu atm (only in
virtualbox and virtualbox doesn't support webcams) so I can't test it.
Also gocast.it has some implementation although I don't know how far
they're yet.
Chrome is doing some effort in supporting webrtc, too (I think they'll
use it for Gtalk/G+ too).
Last but not least, Opera Labs has given a downloadable Opera build
which supports cross-plattform audio/video (webcam) streaming. But
afaik not peer2peer connection until now.

- Michael

Olemis Lang

unread,
Dec 21, 2011, 9:21:07 AM12/21/11
to str...@googlegroups.com
Hi all !

On Wed, Dec 21, 2011 at 6:17 AM, Michael <michael...@gmail.com> wrote:
[...]


>
> About the browsers: Well Ericsson Labs has published some code which
> should work with Ubuntu. But I don't have ubuntu atm (only in
> virtualbox and virtualbox doesn't support webcams) so I can't test it.


JFTR , in my laptop Virtualbox detects built-in webcam as a USB device
... the same should happen if you use a real USB webcam .
;)

PS: NIce to see the what's happened after pulling the trigger
:)
I'll join you ASAIC
;)


--
Regards,

Olemis

Featured article : Personalizando imagenes mostradas al compartir
páginas en sitios sociales
http://feedproxy.google.com/~r/simelo-news/~3/nSdht_RqLKk/personalizando-imagenes-mostradas-al.html
Tweet: +1 RT @holdenweb This is insane. Everyone should be fighting
this: Stop American Censorship http://t.co/S9EIkYdk #fb
Follow @olemislc Reply Retweet   23:08 Dec-14
  Get this email app!
Get a signature like this. CLICK HERE.

Michael Weibel

unread,
Dec 21, 2011, 9:44:18 AM12/21/11
to str...@googlegroups.com
Hi Olemis,

>
>
> JFTR , in my laptop Virtualbox detects built-in webcam as a USB device
> ... the same should happen if you use a real USB webcam .

hm ok. maybe it's just macbook webcams which don't work.. but I'll give it another try :)

> ;)
>
> PS: NIce to see the what's happened after pulling the trigger
> :)
> I'll join you ASAIC

Nice :)

- Michael

Michael Weibel

unread,
Dec 22, 2011, 1:52:14 PM12/22/11
to str...@googlegroups.com
Hi all,

a small update: I figured out how to get the candidates required for jingle session-initiate using a STUN/TURN server, which is supported by the WebRTC API of the custom Epiphany build of Ericsson labs :)

Check out the source on github: https://github.com/mweibel/strophejs-plugins/tree/jingle

Cheers
Michael

Michael Weibel

unread,
May 17, 2013, 2:33:56 AM5/17/13
to str...@googlegroups.com
Hi,

currently we have a candy plugin which uses it:

Please be aware that I haven't had time to implement more since ~1 year so I guess it doesn't work anymore as the APIs for WebRTC have changed rapidly since then.

I'd appreciate pull requests though.

- Michael

Am 16.05.2013 um 16:32 schrieb Lucas Ces Santos <luca...@gmail.com>:

Hello Michael, do you have any sample on how to test this plugin?

Thanks in advance,

Lucas Ces
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.

To post to this group, send email to str...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages