1.2.0 • Published 9 years ago

xmpp-ftw-jingle v1.2.0

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
9 years ago

xmpp-ftw-jingle

A Jingle (XEP-0166) plugin for XMPP-FTW.

https://github.com/xmpp-ftw/xmpp-ftw.git

More....

See the XMPP-FTW demo repository - https://github.com/xmpp-ftw/xmpp-ftw-demo

Client usage

See https://github.com/legastero/jingle.js

var jingle = new JingleWebRTC()
var attachMediaStream = require('attachmediastream')

jingle.on('localStream', function (stream) {
    attachMediaStream(stream, document.getElementById('localVideo'), {
        mirror: true,
        muted: true
    })
})

jingle.on('send', function (data) {
     socket.emit('xmpp.jingle.connection', data)
})

jingle.on('peerStreamAdded', function (session) {
     attachMediaStream(session.stream, document.getElementById('remoteVideo'))
})

// Answering a call request.
jingle.on('incoming', function (session) {
     session.accept() // Or display an incoming call banner, etc
});

// Starting an A/V session.
jingle.startLocalMedia(null, function () {
    var sess = jingle.createMediaSession('peer@example.com/resouce')
    sess.start()
})

Build status

Build Status Dependency Status Coverage Status

Install

npm i --save xmpp-ftw-jingle

Test

npm test
1.2.0

9 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago