How does WebRTC use libjingle?
Asked Answered
U

4

11

I download WebRTC's source code, but I can't find any libjingle's code at the WebRTC, and can't find how WebRTC use libjingle (can't find such as XmppTask Class in WebRTC's code)

Can anyone give me a guide?

Ugo answered 22/5, 2012 at 2:59 Comment(0)
E
20

Libjingle is now part of the WebRTC project and code base. WebRTC is a set of API's that make video, audio, and data interaction simple through a peer-to-peer connection. Where as Libjingle is used as a part of the WebRTC implementation to handle NAT traversal and stream handling.

Libjingle was initially used solely through XMPP to create a point-to-point connection between two chat clients. The technologies used are ICE, STUN, and TURN.

WebRTC has a large focus on Javascript mainly because its core usefulness is using the functionality through a browser. However, WebRTC (with Libjingle), can be built for many platforms and has a number of different APIs in various languages.

Libjingle is written in C++, so can be used by itself without WebRTC. However, I recommend using Libjingle's functionality through the way of the WebRTC APIs.

Eardrum answered 10/11, 2014 at 21:29 Comment(0)
S
2

Yes, libjingle folder in webrtc has been removed in the lastest version. You can ignore it.

Stromberg answered 17/3, 2017 at 10:5 Comment(1)
What does this mean? What replaces libjingle?Struthious
E
0

These are two separate packages.

WebRTC is the multimedia part only - nothing to do with signaling (which is what XMPP and Jingle are).

libjingle is used to build an application that runs on a device or a PC while WebRTC is designed and targeted at being integrated into HTML pages using a web browser.

Etheridge answered 24/5, 2012 at 8:13 Comment(1)
The two aren't mutually exclusive, as I have answered below. There are non-javascript APIs for WebRTC.Eardrum
P
0

WebRTC - audio/video/data transfer p2p. Signalling - establishes connection between 2 WebRTC based apps. Take a look over this android webrtc videocall app and this nodejs signalling relay. You send a 'message' (check in file sockets.js in relay project at the following line

`client.on('message', function (details) {`

to see what's happening with it) of type 'init' from device A to device B, then device B creates an offer to device A. After that A answers to B, exchanging Ice Candidates then video connection is ready. (I'm sorry if i wasn't very explicit).

Phoebephoebus answered 24/8, 2017 at 15:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.