//var options = { // hosts: { // domain: "prod-us-east-1-app-xmpp1.internal.meet.hipchat.ninja", // focus: "focus.prod-us-east-1-app-xmpp1.internal.meet.hipchat.ninja", // muc: "conference.prod-us-east-1-app-xmpp1.internal.meet.hipchat.ninja", // FIXME: use XEP-0030 // }, // bosh: "https://xmpp1-meet.hipchat.me/http-bind", // FIXME: use xep-0156 for that // clientNode: "http://prod-us-east-1-app-xmpp1.internal.meet.hipchat.ninja/jitsimeet" // The name of client node advertised in XEP-0115 'c' stanza //}; 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 options = { // hosts: { // domain: 'whatever.jitsi.net', // muc: 'conference.whatever.jitsi.net', // FIXME: use XEP-0030 // bridge: 'jitsi-videobridge.whatever.jitsi.net', // FIXME: use XEP-0030 // }, // bosh: '//whatever.jitsi.net/http-bind?ROOM_NAME=conference2', // 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, disableAudioLevels: true } /** * Handles local tracks. * @param tracks Array with JitsiTrack objects */ function onLocalTracks(tracks) { localTracks = tracks; tracks[0].attach($("#localAudio")); tracks[1].attach($("#localVideo")); for(var i = 0; i < localTracks.length; i++) { console.log(localTracks[i]); } } /** * 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("