use lib to change chat subject

This commit is contained in:
isymchych 2016-01-14 16:23:06 +02:00
parent a0355ea080
commit d31aca4483
4 changed files with 110 additions and 83 deletions

View File

@ -634,10 +634,11 @@ export default {
}); });
APP.UI.addListener(UIEvents.TOPIC_CHANGED, (topic) => { APP.UI.addListener(UIEvents.SUBJECT_CHANGED, (topic) => {
// FIXME handle topic change room.setSubject(topic);
// APP.xmpp.setSubject(topic); });
// on SUBJECT_CHANGED UI.setSubject(topic); room.on(ConferenceEvents.SUBJECT_CHANGED, function (subject) {
APP.UI.setSubject(subject);
}); });
APP.UI.addListener(UIEvents.USER_KICKED, (id) => { APP.UI.addListener(UIEvents.USER_KICKED, (id) => {

View File

@ -258,6 +258,16 @@ JitsiConference.prototype.setDisplayName = function(name) {
} }
}; };
/**
* Set new subject for this conference. (available only for moderator)
* @param {string} subject new subject
*/
JitsiConference.prototype.setSubject = function (subject) {
if (this.room && this.isModerator()) {
this.room.setSubject(subject);
}
};
/** /**
* Adds JitsiLocalTrack object to the conference. * Adds JitsiLocalTrack object to the conference.
* @param track the JitsiLocalTrack object. * @param track the JitsiLocalTrack object.
@ -785,6 +795,10 @@ function setupListeners(conference) {
} }
); );
conference.room.addListener(XMPPEvents.SUBJECT_CHANGED, function (subject) {
conference.eventEmitter.emit(JitsiConferenceEvents.SUBJECT_CHANGED, subject);
});
conference.room.addListener(XMPPEvents.MUC_JOINED, function () { conference.room.addListener(XMPPEvents.MUC_JOINED, function () {
conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_JOINED); conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_JOINED);
}); });
@ -1001,7 +1015,7 @@ function setupListeners(conference) {
module.exports = JitsiConference; module.exports = JitsiConference;
}).call(this,"/JitsiConference.js") }).call(this,"/JitsiConference.js")
},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiParticipant":8,"./JitsiTrackEvents":10,"./modules/DTMF/JitsiDTMFManager":11,"./modules/RTC/RTC":16,"./modules/settings/Settings":21,"./modules/statistics/statistics":25,"./service/RTC/RTCEvents":132,"./service/authentication/AuthenticationEvents":134,"./service/xmpp/XMPPEvents":138,"events":45,"jitsi-meet-logger":49}],2:[function(require,module,exports){ },{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiParticipant":8,"./JitsiTrackEvents":10,"./modules/DTMF/JitsiDTMFManager":11,"./modules/RTC/RTC":16,"./modules/settings/Settings":21,"./modules/statistics/statistics":25,"./service/RTC/RTCEvents":136,"./service/authentication/AuthenticationEvents":138,"./service/xmpp/XMPPEvents":142,"events":45,"jitsi-meet-logger":49}],2:[function(require,module,exports){
/** /**
* Enumeration with the errors for the conference. * Enumeration with the errors for the conference.
* @type {{string: string}} * @type {{string: string}}
@ -1077,6 +1091,10 @@ var JitsiConferenceEvents = {
* A user has changed it display name * A user has changed it display name
*/ */
DISPLAY_NAME_CHANGED: "conference.displayNameChanged", DISPLAY_NAME_CHANGED: "conference.displayNameChanged",
/**
* Indicates that subject of the conference has changed.
*/
SUBJECT_CHANGED: "conference.subjectChanged",
/** /**
* A participant avatar has changed. * A participant avatar has changed.
*/ */
@ -1419,7 +1437,7 @@ window.Promise = window.Promise || require("es6-promise").Promise;
module.exports = LibJitsiMeet; module.exports = LibJitsiMeet;
},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./service/RTC/Resolutions":133,"es6-promise":47,"jitsi-meet-logger":49}],8:[function(require,module,exports){ },{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./service/RTC/Resolutions":137,"es6-promise":47,"jitsi-meet-logger":49}],8:[function(require,module,exports){
/* global Strophe */ /* global Strophe */
/** /**
@ -1867,7 +1885,7 @@ module.exports = DataChannels;
}).call(this,"/modules/RTC/DataChannels.js") }).call(this,"/modules/RTC/DataChannels.js")
},{"../../service/RTC/RTCEvents":132,"jitsi-meet-logger":49}],13:[function(require,module,exports){ },{"../../service/RTC/RTCEvents":136,"jitsi-meet-logger":49}],13:[function(require,module,exports){
var JitsiTrack = require("./JitsiTrack"); var JitsiTrack = require("./JitsiTrack");
var RTCBrowserType = require("./RTCBrowserType"); var RTCBrowserType = require("./RTCBrowserType");
var JitsiTrackEvents = require('../../JitsiTrackEvents'); var JitsiTrackEvents = require('../../JitsiTrackEvents');
@ -2644,7 +2662,7 @@ RTC.prototype.setAudioLevel = function (jid, audioLevel) {
} }
module.exports = RTC; module.exports = RTC;
},{"../../service/RTC/MediaStreamTypes":131,"../../service/RTC/RTCEvents.js":132,"../../service/desktopsharing/DesktopSharingEventTypes":135,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":45}],17:[function(require,module,exports){ },{"../../service/RTC/MediaStreamTypes":135,"../../service/RTC/RTCEvents.js":136,"../../service/desktopsharing/DesktopSharingEventTypes":139,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":45}],17:[function(require,module,exports){
var currentBrowser; var currentBrowser;
@ -3637,7 +3655,7 @@ var RTCUtils = {
module.exports = RTCUtils; module.exports = RTCUtils;
}).call(this,"/modules/RTC/RTCUtils.js") }).call(this,"/modules/RTC/RTCUtils.js")
},{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":132,"../../service/RTC/Resolutions":133,"../xmpp/SDPUtil":33,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":45,"jitsi-meet-logger":49}],19:[function(require,module,exports){ },{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":136,"../../service/RTC/Resolutions":137,"../xmpp/SDPUtil":33,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":45,"jitsi-meet-logger":49}],19:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* global chrome, $, alert */ /* global chrome, $, alert */
/* jshint -W003 */ /* jshint -W003 */
@ -4053,7 +4071,7 @@ function initFirefoxExtensionDetection(options) {
module.exports = ScreenObtainer; module.exports = ScreenObtainer;
}).call(this,"/modules/RTC/ScreenObtainer.js") }).call(this,"/modules/RTC/ScreenObtainer.js")
},{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":135,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":49}],20:[function(require,module,exports){ },{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":139,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":49}],20:[function(require,module,exports){
(function (__filename){ (function (__filename){
/*! adapterjs - v0.12.3 - 2015-11-16 */ /*! adapterjs - v0.12.3 - 2015-11-16 */
var console = require("jitsi-meet-logger").getLogger(__filename); var console = require("jitsi-meet-logger").getLogger(__filename);
@ -5587,7 +5605,7 @@ CallStats.sendAddIceCandidateFailed = _try_catch(function (e, pc, cs) {
module.exports = CallStats; module.exports = CallStats;
}).call(this,"/modules/statistics/CallStats.js") }).call(this,"/modules/statistics/CallStats.js")
},{"jitsi-meet-logger":49,"jssha":50,"socket.io-client":81}],23:[function(require,module,exports){ },{"jitsi-meet-logger":49,"jssha":50,"socket.io-client":85}],23:[function(require,module,exports){
/* global config */ /* global config */
/** /**
* Provides statistics for the local stream. * Provides statistics for the local stream.
@ -6444,7 +6462,7 @@ StatsCollector.prototype.processAudioLevelReport = function () {
}; };
}).call(this,"/modules/statistics/RTPStatsCollector.js") }).call(this,"/modules/statistics/RTPStatsCollector.js")
},{"../../service/statistics/Events":136,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":49}],25:[function(require,module,exports){ },{"../../service/statistics/Events":140,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":49}],25:[function(require,module,exports){
/* global require, APP */ /* global require, APP */
var LocalStats = require("./LocalStatsCollector.js"); var LocalStats = require("./LocalStatsCollector.js");
var RTPStats = require("./RTPStatsCollector.js"); var RTPStats = require("./RTPStatsCollector.js");
@ -6728,7 +6746,7 @@ Statistics.LOCAL_JID = require("../../service/statistics/constants").LOCAL_JID;
module.exports = Statistics; module.exports = Statistics;
},{"../../service/statistics/Events":136,"../../service/statistics/constants":137,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":45}],26:[function(require,module,exports){ },{"../../service/statistics/Events":140,"../../service/statistics/constants":141,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":45}],26:[function(require,module,exports){
/** /**
/** /**
* @const * @const
@ -7594,7 +7612,6 @@ ChatRoom.prototype.setSubject = function (subject) {
var msg = $msg({to: this.roomjid, type: 'groupchat'}); var msg = $msg({to: this.roomjid, type: 'groupchat'});
msg.c('subject', subject); msg.c('subject', subject);
this.connection.send(msg); this.connection.send(msg);
logger.log("topic changed to " + subject);
}; };
@ -8048,7 +8065,7 @@ ChatRoom.prototype.onMute = function (iq) {
module.exports = ChatRoom; module.exports = ChatRoom;
}).call(this,"/modules/xmpp/ChatRoom.js") }).call(this,"/modules/xmpp/ChatRoom.js")
},{"../../service/xmpp/XMPPEvents":138,"./moderator":35,"./recording":36,"events":45,"jitsi-meet-logger":49}],29:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"./moderator":35,"./recording":36,"events":45,"jitsi-meet-logger":49}],29:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* /*
* JingleSession provides an API to manage a single Jingle session. We will * JingleSession provides an API to manage a single Jingle session. We will
@ -9847,7 +9864,7 @@ JingleSessionPC.prototype.getIceConnectionState = function () {
module.exports = JingleSessionPC; module.exports = JingleSessionPC;
}).call(this,"/modules/xmpp/JingleSessionPC.js") }).call(this,"/modules/xmpp/JingleSessionPC.js")
},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":29,"./SDP":31,"./SDPDiffer":32,"./SDPUtil":33,"./TraceablePeerConnection":34,"async":44,"jitsi-meet-logger":49,"sdp-transform":78}],31:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":29,"./SDP":31,"./SDPDiffer":32,"./SDPUtil":33,"./TraceablePeerConnection":34,"async":44,"jitsi-meet-logger":49,"sdp-transform":82}],31:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* jshint -W117 */ /* jshint -W117 */
@ -11542,7 +11559,7 @@ TraceablePeerConnection.prototype.getStats = function(callback, errback) {
module.exports = TraceablePeerConnection; module.exports = TraceablePeerConnection;
}).call(this,"/modules/xmpp/TraceablePeerConnection.js") }).call(this,"/modules/xmpp/TraceablePeerConnection.js")
},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":49,"sdp-interop":68,"sdp-simulcast":75,"sdp-transform":78}],35:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":49,"sdp-interop":68,"sdp-simulcast":75,"sdp-transform":82}],35:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* global $, $iq, Promise, Strophe */ /* global $, $iq, Promise, Strophe */
@ -11998,7 +12015,7 @@ Moderator.prototype.logout = function (callback) {
module.exports = Moderator; module.exports = Moderator;
}).call(this,"/modules/xmpp/moderator.js") }).call(this,"/modules/xmpp/moderator.js")
},{"../../service/authentication/AuthenticationEvents":134,"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],36:[function(require,module,exports){ },{"../../service/authentication/AuthenticationEvents":138,"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],36:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* global $, $iq, config, connection, focusMucJid, messageHandler, /* global $, $iq, config, connection, focusMucJid, messageHandler,
Toolbar, Util, Promise */ Toolbar, Util, Promise */
@ -12225,7 +12242,7 @@ Recording.prototype.getURL = function () {
module.exports = Recording; module.exports = Recording;
}).call(this,"/modules/xmpp/recording.js") }).call(this,"/modules/xmpp/recording.js")
},{"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],37:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],37:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* jshint -W117 */ /* jshint -W117 */
/* a simple MUC connection plugin /* a simple MUC connection plugin
@ -12635,7 +12652,7 @@ module.exports = function(XMPP, eventEmitter) {
}).call(this,"/modules/xmpp/strophe.jingle.js") }).call(this,"/modules/xmpp/strophe.jingle.js")
},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTCBrowserType":17,"./JingleSessionPC":30,"jitsi-meet-logger":49}],39:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"../RTC/RTCBrowserType":17,"./JingleSessionPC":30,"jitsi-meet-logger":49}],39:[function(require,module,exports){
/* global Strophe */ /* global Strophe */
module.exports = function () { module.exports = function () {
@ -12783,7 +12800,7 @@ module.exports = function (XMPP, eventEmitter) {
}; };
}).call(this,"/modules/xmpp/strophe.ping.js") }).call(this,"/modules/xmpp/strophe.ping.js")
},{"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],41:[function(require,module,exports){ },{"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],41:[function(require,module,exports){
(function (__filename){ (function (__filename){
/* jshint -W117 */ /* jshint -W117 */
var logger = require("jitsi-meet-logger").getLogger(__filename); var logger = require("jitsi-meet-logger").getLogger(__filename);
@ -13261,7 +13278,7 @@ XMPP.prototype.disconnect = function () {
module.exports = XMPP; module.exports = XMPP;
}).call(this,"/modules/xmpp/xmpp.js") }).call(this,"/modules/xmpp/xmpp.js")
},{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":132,"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"./strophe.emuc":37,"./strophe.jingle":38,"./strophe.logger":39,"./strophe.ping":40,"./strophe.rayo":41,"./strophe.util":42,"events":45,"jitsi-meet-logger":49,"pako":51}],44:[function(require,module,exports){ },{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":136,"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"./strophe.emuc":37,"./strophe.jingle":38,"./strophe.logger":39,"./strophe.ping":40,"./strophe.rayo":41,"./strophe.util":42,"events":45,"jitsi-meet-logger":49,"pako":51}],44:[function(require,module,exports){
(function (process){ (function (process){
/*! /*!
* async * async
@ -24326,10 +24343,18 @@ arguments[4][73][0].apply(exports,arguments)
},{"./grammar":77,"dup":73}],80:[function(require,module,exports){ },{"./grammar":77,"dup":73}],80:[function(require,module,exports){
arguments[4][74][0].apply(exports,arguments) arguments[4][74][0].apply(exports,arguments)
},{"./grammar":77,"dup":74}],81:[function(require,module,exports){ },{"./grammar":77,"dup":74}],81:[function(require,module,exports){
arguments[4][71][0].apply(exports,arguments)
},{"dup":71}],82:[function(require,module,exports){
arguments[4][72][0].apply(exports,arguments)
},{"./parser":83,"./writer":84,"dup":72}],83:[function(require,module,exports){
arguments[4][73][0].apply(exports,arguments)
},{"./grammar":81,"dup":73}],84:[function(require,module,exports){
arguments[4][74][0].apply(exports,arguments)
},{"./grammar":81,"dup":74}],85:[function(require,module,exports){
module.exports = require('./lib/'); module.exports = require('./lib/');
},{"./lib/":82}],82:[function(require,module,exports){ },{"./lib/":86}],86:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -24418,7 +24443,7 @@ exports.connect = lookup;
exports.Manager = require('./manager'); exports.Manager = require('./manager');
exports.Socket = require('./socket'); exports.Socket = require('./socket');
},{"./manager":83,"./socket":85,"./url":86,"debug":90,"socket.io-parser":126}],83:[function(require,module,exports){ },{"./manager":87,"./socket":89,"./url":90,"debug":94,"socket.io-parser":130}],87:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -24923,7 +24948,7 @@ Manager.prototype.onreconnect = function(){
this.emitAll('reconnect', attempt); this.emitAll('reconnect', attempt);
}; };
},{"./on":84,"./socket":85,"./url":86,"backo2":87,"component-bind":88,"component-emitter":89,"debug":90,"engine.io-client":91,"indexof":122,"object-component":123,"socket.io-parser":126}],84:[function(require,module,exports){ },{"./on":88,"./socket":89,"./url":90,"backo2":91,"component-bind":92,"component-emitter":93,"debug":94,"engine.io-client":95,"indexof":126,"object-component":127,"socket.io-parser":130}],88:[function(require,module,exports){
/** /**
* Module exports. * Module exports.
@ -24949,7 +24974,7 @@ function on(obj, ev, fn) {
}; };
} }
},{}],85:[function(require,module,exports){ },{}],89:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -25336,7 +25361,7 @@ Socket.prototype.disconnect = function(){
return this; return this;
}; };
},{"./on":84,"component-bind":88,"component-emitter":89,"debug":90,"has-binary":120,"socket.io-parser":126,"to-array":130}],86:[function(require,module,exports){ },{"./on":88,"component-bind":92,"component-emitter":93,"debug":94,"has-binary":124,"socket.io-parser":130,"to-array":134}],90:[function(require,module,exports){
(function (global){ (function (global){
/** /**
@ -25413,7 +25438,7 @@ function url(uri, loc){
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"debug":90,"parseuri":124}],87:[function(require,module,exports){ },{"debug":94,"parseuri":128}],91:[function(require,module,exports){
/** /**
* Expose `Backoff`. * Expose `Backoff`.
@ -25500,7 +25525,7 @@ Backoff.prototype.setJitter = function(jitter){
}; };
},{}],88:[function(require,module,exports){ },{}],92:[function(require,module,exports){
/** /**
* Slice reference. * Slice reference.
*/ */
@ -25525,7 +25550,7 @@ module.exports = function(obj, fn){
} }
}; };
},{}],89:[function(require,module,exports){ },{}],93:[function(require,module,exports){
/** /**
* Expose `Emitter`. * Expose `Emitter`.
@ -25691,7 +25716,7 @@ Emitter.prototype.hasListeners = function(event){
return !! this.listeners(event).length; return !! this.listeners(event).length;
}; };
},{}],90:[function(require,module,exports){ },{}],94:[function(require,module,exports){
/** /**
* Expose `debug()` as the module. * Expose `debug()` as the module.
@ -25830,11 +25855,11 @@ try {
if (window.localStorage) debug.enable(localStorage.debug); if (window.localStorage) debug.enable(localStorage.debug);
} catch(e){} } catch(e){}
},{}],91:[function(require,module,exports){ },{}],95:[function(require,module,exports){
module.exports = require('./lib/'); module.exports = require('./lib/');
},{"./lib/":92}],92:[function(require,module,exports){ },{"./lib/":96}],96:[function(require,module,exports){
module.exports = require('./socket'); module.exports = require('./socket');
@ -25846,7 +25871,7 @@ module.exports = require('./socket');
*/ */
module.exports.parser = require('engine.io-parser'); module.exports.parser = require('engine.io-parser');
},{"./socket":93,"engine.io-parser":105}],93:[function(require,module,exports){ },{"./socket":97,"engine.io-parser":109}],97:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* Module dependencies. * Module dependencies.
@ -26555,7 +26580,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
}; };
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./transport":94,"./transports":95,"component-emitter":89,"debug":102,"engine.io-parser":105,"indexof":122,"parsejson":116,"parseqs":117,"parseuri":118}],94:[function(require,module,exports){ },{"./transport":98,"./transports":99,"component-emitter":93,"debug":106,"engine.io-parser":109,"indexof":126,"parsejson":120,"parseqs":121,"parseuri":122}],98:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
*/ */
@ -26716,7 +26741,7 @@ Transport.prototype.onClose = function () {
this.emit('close'); this.emit('close');
}; };
},{"component-emitter":89,"engine.io-parser":105}],95:[function(require,module,exports){ },{"component-emitter":93,"engine.io-parser":109}],99:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* Module dependencies * Module dependencies
@ -26773,7 +26798,7 @@ function polling(opts){
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./polling-jsonp":96,"./polling-xhr":97,"./websocket":99,"xmlhttprequest":100}],96:[function(require,module,exports){ },{"./polling-jsonp":100,"./polling-xhr":101,"./websocket":103,"xmlhttprequest":104}],100:[function(require,module,exports){
(function (global){ (function (global){
/** /**
@ -27010,7 +27035,7 @@ JSONPPolling.prototype.doWrite = function (data, fn) {
}; };
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./polling":98,"component-inherit":101}],97:[function(require,module,exports){ },{"./polling":102,"component-inherit":105}],101:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* Module requirements. * Module requirements.
@ -27398,7 +27423,7 @@ function unloadHandler() {
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./polling":98,"component-emitter":89,"component-inherit":101,"debug":102,"xmlhttprequest":100}],98:[function(require,module,exports){ },{"./polling":102,"component-emitter":93,"component-inherit":105,"debug":106,"xmlhttprequest":104}],102:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
*/ */
@ -27645,7 +27670,7 @@ Polling.prototype.uri = function(){
return schema + '://' + this.hostname + port + this.path + query; return schema + '://' + this.hostname + port + this.path + query;
}; };
},{"../transport":94,"component-inherit":101,"debug":102,"engine.io-parser":105,"parseqs":117,"xmlhttprequest":100}],99:[function(require,module,exports){ },{"../transport":98,"component-inherit":105,"debug":106,"engine.io-parser":109,"parseqs":121,"xmlhttprequest":104}],103:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
*/ */
@ -27885,7 +27910,7 @@ WS.prototype.check = function(){
return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name); return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
}; };
},{"../transport":94,"component-inherit":101,"debug":102,"engine.io-parser":105,"parseqs":117,"ws":119}],100:[function(require,module,exports){ },{"../transport":98,"component-inherit":105,"debug":106,"engine.io-parser":109,"parseqs":121,"ws":123}],104:[function(require,module,exports){
// browser shim for xmlhttprequest module // browser shim for xmlhttprequest module
var hasCORS = require('has-cors'); var hasCORS = require('has-cors');
@ -27923,7 +27948,7 @@ module.exports = function(opts) {
} }
} }
},{"has-cors":114}],101:[function(require,module,exports){ },{"has-cors":118}],105:[function(require,module,exports){
module.exports = function(a, b){ module.exports = function(a, b){
var fn = function(){}; var fn = function(){};
@ -27931,7 +27956,7 @@ module.exports = function(a, b){
a.prototype = new fn; a.prototype = new fn;
a.prototype.constructor = a; a.prototype.constructor = a;
}; };
},{}],102:[function(require,module,exports){ },{}],106:[function(require,module,exports){
/** /**
* This is the web browser implementation of `debug()`. * This is the web browser implementation of `debug()`.
@ -28080,7 +28105,7 @@ function load() {
exports.enable(load()); exports.enable(load());
},{"./debug":103}],103:[function(require,module,exports){ },{"./debug":107}],107:[function(require,module,exports){
/** /**
* This is the common logic for both the Node.js and web browser * This is the common logic for both the Node.js and web browser
@ -28279,7 +28304,7 @@ function coerce(val) {
return val; return val;
} }
},{"ms":104}],104:[function(require,module,exports){ },{"ms":108}],108:[function(require,module,exports){
/** /**
* Helpers. * Helpers.
*/ */
@ -28392,7 +28417,7 @@ function plural(ms, n, name) {
return Math.ceil(ms / n) + ' ' + name + 's'; return Math.ceil(ms / n) + ' ' + name + 's';
} }
},{}],105:[function(require,module,exports){ },{}],109:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* Module dependencies. * Module dependencies.
@ -28990,7 +29015,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
}; };
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./keys":106,"after":107,"arraybuffer.slice":108,"base64-arraybuffer":109,"blob":110,"has-binary":111,"utf8":113}],106:[function(require,module,exports){ },{"./keys":110,"after":111,"arraybuffer.slice":112,"base64-arraybuffer":113,"blob":114,"has-binary":115,"utf8":117}],110:[function(require,module,exports){
/** /**
* Gets the keys for an object. * Gets the keys for an object.
@ -29011,7 +29036,7 @@ module.exports = Object.keys || function keys (obj){
return arr; return arr;
}; };
},{}],107:[function(require,module,exports){ },{}],111:[function(require,module,exports){
module.exports = after module.exports = after
function after(count, callback, err_cb) { function after(count, callback, err_cb) {
@ -29041,7 +29066,7 @@ function after(count, callback, err_cb) {
function noop() {} function noop() {}
},{}],108:[function(require,module,exports){ },{}],112:[function(require,module,exports){
/** /**
* An abstraction for slicing an arraybuffer even when * An abstraction for slicing an arraybuffer even when
* ArrayBuffer.prototype.slice is not supported * ArrayBuffer.prototype.slice is not supported
@ -29072,7 +29097,7 @@ module.exports = function(arraybuffer, start, end) {
return result.buffer; return result.buffer;
}; };
},{}],109:[function(require,module,exports){ },{}],113:[function(require,module,exports){
/* /*
* base64-arraybuffer * base64-arraybuffer
* https://github.com/niklasvh/base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer
@ -29133,7 +29158,7 @@ module.exports = function(arraybuffer, start, end) {
}; };
})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"); })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
},{}],110:[function(require,module,exports){ },{}],114:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* Create a blob builder even when vendor prefixes exist * Create a blob builder even when vendor prefixes exist
@ -29186,7 +29211,7 @@ module.exports = (function() {
})(); })();
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],111:[function(require,module,exports){ },{}],115:[function(require,module,exports){
(function (global){ (function (global){
/* /*
@ -29248,12 +29273,12 @@ function hasBinary(data) {
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"isarray":112}],112:[function(require,module,exports){ },{"isarray":116}],116:[function(require,module,exports){
module.exports = Array.isArray || function (arr) { module.exports = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]'; return Object.prototype.toString.call(arr) == '[object Array]';
}; };
},{}],113:[function(require,module,exports){ },{}],117:[function(require,module,exports){
(function (global){ (function (global){
/*! http://mths.be/utf8js v2.0.0 by @mathias */ /*! http://mths.be/utf8js v2.0.0 by @mathias */
;(function(root) { ;(function(root) {
@ -29496,7 +29521,7 @@ module.exports = Array.isArray || function (arr) {
}(this)); }(this));
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],114:[function(require,module,exports){ },{}],118:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -29521,7 +29546,7 @@ try {
module.exports = false; module.exports = false;
} }
},{"global":115}],115:[function(require,module,exports){ },{"global":119}],119:[function(require,module,exports){
/** /**
* Returns `this`. Execute this without a "context" (i.e. without it being * Returns `this`. Execute this without a "context" (i.e. without it being
@ -29531,7 +29556,7 @@ try {
module.exports = (function () { return this; })(); module.exports = (function () { return this; })();
},{}],116:[function(require,module,exports){ },{}],120:[function(require,module,exports){
(function (global){ (function (global){
/** /**
* JSON parse. * JSON parse.
@ -29566,7 +29591,7 @@ module.exports = function parsejson(data) {
} }
}; };
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],117:[function(require,module,exports){ },{}],121:[function(require,module,exports){
/** /**
* Compiles a querystring * Compiles a querystring
* Returns string representation of the object * Returns string representation of the object
@ -29605,7 +29630,7 @@ exports.decode = function(qs){
return qry; return qry;
}; };
},{}],118:[function(require,module,exports){ },{}],122:[function(require,module,exports){
/** /**
* Parses an URI * Parses an URI
* *
@ -29646,7 +29671,7 @@ module.exports = function parseuri(str) {
return uri; return uri;
}; };
},{}],119:[function(require,module,exports){ },{}],123:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -29691,7 +29716,7 @@ function ws(uri, protocols, opts) {
if (WebSocket) ws.prototype = WebSocket.prototype; if (WebSocket) ws.prototype = WebSocket.prototype;
},{}],120:[function(require,module,exports){ },{}],124:[function(require,module,exports){
(function (global){ (function (global){
/* /*
@ -29753,9 +29778,9 @@ function hasBinary(data) {
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"isarray":121}],121:[function(require,module,exports){ },{"isarray":125}],125:[function(require,module,exports){
arguments[4][112][0].apply(exports,arguments) arguments[4][116][0].apply(exports,arguments)
},{"dup":112}],122:[function(require,module,exports){ },{"dup":116}],126:[function(require,module,exports){
var indexOf = [].indexOf; var indexOf = [].indexOf;
@ -29766,7 +29791,7 @@ module.exports = function(arr, obj){
} }
return -1; return -1;
}; };
},{}],123:[function(require,module,exports){ },{}],127:[function(require,module,exports){
/** /**
* HOP ref. * HOP ref.
@ -29851,7 +29876,7 @@ exports.length = function(obj){
exports.isEmpty = function(obj){ exports.isEmpty = function(obj){
return 0 == exports.length(obj); return 0 == exports.length(obj);
}; };
},{}],124:[function(require,module,exports){ },{}],128:[function(require,module,exports){
/** /**
* Parses an URI * Parses an URI
* *
@ -29878,7 +29903,7 @@ module.exports = function parseuri(str) {
return uri; return uri;
}; };
},{}],125:[function(require,module,exports){ },{}],129:[function(require,module,exports){
(function (global){ (function (global){
/*global Blob,File*/ /*global Blob,File*/
@ -30023,7 +30048,7 @@ exports.removeBlobs = function(data, callback) {
}; };
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./is-buffer":127,"isarray":128}],126:[function(require,module,exports){ },{"./is-buffer":131,"isarray":132}],130:[function(require,module,exports){
/** /**
* Module dependencies. * Module dependencies.
@ -30425,7 +30450,7 @@ function error(data){
}; };
} }
},{"./binary":125,"./is-buffer":127,"component-emitter":89,"debug":90,"isarray":128,"json3":129}],127:[function(require,module,exports){ },{"./binary":129,"./is-buffer":131,"component-emitter":93,"debug":94,"isarray":132,"json3":133}],131:[function(require,module,exports){
(function (global){ (function (global){
module.exports = isBuf; module.exports = isBuf;
@ -30442,9 +30467,9 @@ function isBuf(obj) {
} }
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],128:[function(require,module,exports){ },{}],132:[function(require,module,exports){
arguments[4][112][0].apply(exports,arguments) arguments[4][116][0].apply(exports,arguments)
},{"dup":112}],129:[function(require,module,exports){ },{"dup":116}],133:[function(require,module,exports){
/*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */ /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
;(function (window) { ;(function (window) {
// Convenience aliases. // Convenience aliases.
@ -31307,7 +31332,7 @@ arguments[4][112][0].apply(exports,arguments)
} }
}(this)); }(this));
},{}],130:[function(require,module,exports){ },{}],134:[function(require,module,exports){
module.exports = toArray module.exports = toArray
function toArray(list, index) { function toArray(list, index) {
@ -31322,14 +31347,14 @@ function toArray(list, index) {
return array return array
} }
},{}],131:[function(require,module,exports){ },{}],135:[function(require,module,exports){
var MediaStreamType = { var MediaStreamType = {
VIDEO_TYPE: "Video", VIDEO_TYPE: "Video",
AUDIO_TYPE: "Audio" AUDIO_TYPE: "Audio"
}; };
module.exports = MediaStreamType; module.exports = MediaStreamType;
},{}],132:[function(require,module,exports){ },{}],136:[function(require,module,exports){
var RTCEvents = { var RTCEvents = {
RTC_READY: "rtc.ready", RTC_READY: "rtc.ready",
DATA_CHANNEL_OPEN: "rtc.data_channel_open", DATA_CHANNEL_OPEN: "rtc.data_channel_open",
@ -31341,7 +31366,7 @@ var RTCEvents = {
}; };
module.exports = RTCEvents; module.exports = RTCEvents;
},{}],133:[function(require,module,exports){ },{}],137:[function(require,module,exports){
var Resolutions = { var Resolutions = {
"1080": { "1080": {
width: 1920, width: 1920,
@ -31395,7 +31420,7 @@ var Resolutions = {
} }
}; };
module.exports = Resolutions; module.exports = Resolutions;
},{}],134:[function(require,module,exports){ },{}],138:[function(require,module,exports){
var AuthenticationEvents = { var AuthenticationEvents = {
/** /**
* Event callback arguments: * Event callback arguments:
@ -31409,7 +31434,7 @@ var AuthenticationEvents = {
}; };
module.exports = AuthenticationEvents; module.exports = AuthenticationEvents;
},{}],135:[function(require,module,exports){ },{}],139:[function(require,module,exports){
var DesktopSharingEventTypes = { var DesktopSharingEventTypes = {
/** /**
* An event which indicates that the jidesha extension for Firefox is * An event which indicates that the jidesha extension for Firefox is
@ -31420,7 +31445,7 @@ var DesktopSharingEventTypes = {
module.exports = DesktopSharingEventTypes; module.exports = DesktopSharingEventTypes;
},{}],136:[function(require,module,exports){ },{}],140:[function(require,module,exports){
module.exports = { module.exports = {
/** /**
* An event carrying connection statistics. * An event carrying connection statistics.
@ -31436,12 +31461,12 @@ module.exports = {
STOP: "statistics.stop" STOP: "statistics.stop"
}; };
},{}],137:[function(require,module,exports){ },{}],141:[function(require,module,exports){
var Constants = { var Constants = {
LOCAL_JID: 'local' LOCAL_JID: 'local'
}; };
module.exports = Constants; module.exports = Constants;
},{}],138:[function(require,module,exports){ },{}],142:[function(require,module,exports){
var XMPPEvents = { var XMPPEvents = {
// Designates an event indicating that the connection to the XMPP server // Designates an event indicating that the connection to the XMPP server
// failed. // failed.

View File

@ -32,7 +32,7 @@ function getCommand(message) {
*/ */
function processTopic(commandArguments, emitter) { function processTopic(commandArguments, emitter) {
var topic = UIUtil.escapeHtml(commandArguments); var topic = UIUtil.escapeHtml(commandArguments);
emitter.emit(UIEvents.TOPIC_CHANGED, topic); emitter.emit(UIEvents.SUBJECT_CHANGED, topic);
} }
/** /**

View File

@ -40,5 +40,6 @@ export default {
HANGUP: "UI.hangup", HANGUP: "UI.hangup",
LOGOUT: "UI.logout", LOGOUT: "UI.logout",
RECORDING_TOGGLE: "UI.recording_toggle", RECORDING_TOGGLE: "UI.recording_toggle",
TOPIC_CHANGED: "UI.topic_changed" SIP_DIAL: "UI.sip_dial",
SUBEJCT_CHANGED: "UI.subject_changed"
}; };