var options = { hosts: { domain: 'hristo.jitsi.net', muc: 'conference.hristo.jitsi.net', // FIXME: use XEP-0030 bridge: 'jitsi-videobridge.hristo.jitsi.net', // FIXME: use XEP-0030 }, bosh: '//hristo.jitsi.net/http-bind', // FIXME: use xep-0156 for that clientNode: 'http://jitsi.org/jitsimeet' // The name of client node advertised in XEP-0115 'c' stanza }; var confOptions = { openSctp: true } /** * Handles local tracks. * @param tracks Array with JitsiTrack objects */ function onLocalTracks(tracks) { localTracks = tracks; console.log(tracks); tracks[0].attach($("#localAudio")); tracks[1].attach($("#localVideo")); } /** * Handles remote tracks * @param track JitsiTrack object */ function onRemoteTrack(track) { var participant = track.getParitcipantId(); if(!remoteTracks[participant]) remoteTracks[participant] = []; remoteTracks[participant].push(track); var id = participant + track.getType(); if(track.getType() == "video") { $("body").append("