Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Updates app.bundle.js

George Politis0959b3d5b832
diff --git a/index.html b/index.html
index 5268e5476e..1ac63ca173 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
- <script src="libs/app.bundle.js?v=63"></script>
+ <script src="libs/app.bundle.js?v=64"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1">
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 49d27b0493..cbab997706 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -1,63 +1,4 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.APP = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-/* jshint -W117 */
-/* application specific logic */
-
-var APP =
-{
- init: function () {
- this.UI = require("./modules/UI/UI");
- this.API = require("./modules/API/API");
- this.connectionquality = require("./modules/connectionquality/connectionquality");
- this.statistics = require("./modules/statistics/statistics");
- this.RTC = require("./modules/RTC/RTC");
- this.simulcast = require("./modules/simulcast/simulcast");
- this.desktopsharing = require("./modules/desktopsharing/desktopsharing");
- this.xmpp = require("./modules/xmpp/xmpp");
- this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");
- this.translation = require("./modules/translation/translation");
- this.settings = require("./modules/settings/Settings");
- this.DTMF = require("./modules/DTMF/DTMF");
- this.members = require("./modules/members/MemberList");
- }
-};
-
-function init() {
-
- APP.RTC.start();
- APP.xmpp.start();
- APP.statistics.start();
- APP.connectionquality.init();
-
- // Set default desktop sharing method
- APP.desktopsharing.init();
-
- APP.keyboardshortcut.init();
- APP.members.start();
-}
-
-
-$(document).ready(function () {
-
- APP.init();
-
- APP.translation.init();
-
- if(APP.API.isEnabled())
- APP.API.init();
-
- APP.UI.start(init);
-
-});
-
-$(window).bind('beforeunload', function () {
- if(APP.API.isEnabled())
- APP.API.dispose();
-});
-
-module.exports = APP;
-
-
-},{"./modules/API/API":2,"./modules/DTMF/DTMF":3,"./modules/RTC/RTC":7,"./modules/UI/UI":9,"./modules/connectionquality/connectionquality":36,"./modules/desktopsharing/desktopsharing":37,"./modules/keyboardshortcut/keyboardshortcut":38,"./modules/members/MemberList":39,"./modules/settings/Settings":40,"./modules/simulcast/simulcast":45,"./modules/statistics/statistics":48,"./modules/translation/translation":49,"./modules/xmpp/xmpp":63}],2:[function(require,module,exports){
/**
* Implements API class that communicates with external api class
* and provides interface to access Jitsi Meet features by external
@@ -289,7 +230,7 @@ var API = {
};
module.exports = API;
-},{"../../service/xmpp/XMPPEvents":106}],3:[function(require,module,exports){
+},{"../../service/xmpp/XMPPEvents":105}],2:[function(require,module,exports){
/* global APP */
/**
@@ -338,7 +279,7 @@ var DTMF = {
module.exports = DTMF;
-},{}],4:[function(require,module,exports){
+},{}],3:[function(require,module,exports){
/* global Strophe, focusedVideoSrc*/
// cache datachannels to avoid garbage collection
@@ -574,7 +515,7 @@ function onPinnedEndpointChanged(userResource)
module.exports = DataChannels;
-},{"../../service/RTC/RTCEvents":97}],5:[function(require,module,exports){
+},{"../../service/RTC/RTCEvents":96}],4:[function(require,module,exports){
var StreamEventTypes = require("../../service/RTC/StreamEventTypes.js");
@@ -682,7 +623,7 @@ LocalStream.prototype.getId = function () {
module.exports = LocalStream;
-},{"../../service/RTC/StreamEventTypes.js":99}],6:[function(require,module,exports){
+},{"../../service/RTC/StreamEventTypes.js":98}],5:[function(require,module,exports){
////These lines should be uncommented when require works in app.js
var MediaStreamType = require("../../service/RTC/MediaStreamTypes");
var StreamEventType = require("../../service/RTC/StreamEventTypes");
@@ -744,7 +685,7 @@ MediaStream.prototype.setVideoType = function (value) {
module.exports = MediaStream;
-},{"../../service/RTC/MediaStreamTypes":95,"../../service/RTC/StreamEventTypes":99}],7:[function(require,module,exports){
+},{"../../service/RTC/MediaStreamTypes":94,"../../service/RTC/StreamEventTypes":98}],6:[function(require,module,exports){
var EventEmitter = require("events");
var RTCUtils = require("./RTCUtils.js");
var LocalStream = require("./LocalStream.js");
@@ -1032,7 +973,7 @@ var RTC = {
module.exports = RTC;
-},{"../../service/RTC/MediaStreamTypes":95,"../../service/RTC/RTCEvents.js":97,"../../service/RTC/StreamEventTypes.js":99,"../../service/UI/UIEvents":100,"../../service/desktopsharing/DesktopSharingEventTypes":103,"../../service/xmpp/XMPPEvents":106,"./DataChannels":4,"./LocalStream.js":5,"./MediaStream.js":6,"./RTCUtils.js":8,"events":66}],8:[function(require,module,exports){
+},{"../../service/RTC/MediaStreamTypes":94,"../../service/RTC/RTCEvents.js":96,"../../service/RTC/StreamEventTypes.js":98,"../../service/UI/UIEvents":99,"../../service/desktopsharing/DesktopSharingEventTypes":102,"../../service/xmpp/XMPPEvents":105,"./DataChannels":3,"./LocalStream.js":4,"./MediaStream.js":5,"./RTCUtils.js":7,"events":65}],7:[function(require,module,exports){
var RTCBrowserType = require("../../service/RTC/RTCBrowserType.js");
var Resolutions = require("../../service/RTC/Resolutions");
@@ -1368,7 +1309,43 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function(devices, callback,
return;
}
- this.getUserMediaWithConstraints(
+ if (navigator.mozGetUserMedia) {
+
+ // With FF we can't split the stream into audio and video because FF
+ // doesn't support media stream constructors. So, we need to get the
+ // audio stream separately from the video stream using two distinct GUM
+ // calls. Not very user friendly :-( but we don't have many other
+ // options neither.
+ //
+ // Note that we pack those 2 streams in a single object and pass it to
+ // the successCallback method.
+
+ self.getUserMediaWithConstraints(
+ ['audio'],
+ function (audioStream) {
+ self.getUserMediaWithConstraints(
+ ['video'],
+ function (videoStream) {
+ return self.successCallback({
+ audioStream: audioStream,
+ videoStream: videoStream
+ });
+ },
+ function (error) {
+ console.error('failed to obtain video stream - stop',
+ error);
+ return self.successCallback(null);
+ },
+ config.resolution || '360');
+ },
+ function (error) {
+ console.error('failed to obtain audio stream - stop',
+ error);
+ return self.successCallback(null);
+ }
+ );
+ } else {
+ this.getUserMediaWithConstraints(
newDevices,
function (stream) {
successCallback(stream);
@@ -1377,10 +1354,14 @@ RTCUtils.prototype.obtainAudioAndVideoPermissions = function(devices, callback,
self.errorCallback(error);
},
config.resolution || '360');
+ }
+
}
RTCUtils.prototype.successCallback = function (stream, usageOptions) {
- if(stream)
+ // If this is FF, the stream parameter is *not* a MediaStream object, it's
+ // an object with two properties: audioStream, videoStream.
+ if(stream && !navigator.mozGetUserMedia)
console.log('got', stream, stream.getAudioTracks().length,
stream.getVideoTracks().length);
this.handleLocalStream(stream, usageOptions);
@@ -1423,10 +1404,13 @@ RTCUtils.prototype.errorCallback = function (error) {
RTCUtils.prototype.handleLocalStream = function(stream, usageOptions)
{
+ // If this is FF, the stream parameter is *not* a MediaStream object, it's
+ // an object with two properties: audioStream, videoStream.
+ var audioStream, videoStream;
if(window.webkitMediaStream)
{
- var audioStream = new webkitMediaStream();
- var videoStream = new webkitMediaStream();
+ audioStream = new webkitMediaStream();
+ videoStream = new webkitMediaStream();
if(stream) {
var audioTracks = stream.getAudioTracks();
@@ -1440,25 +1424,24 @@ RTCUtils.prototype.handleLocalStream = function(stream, usageOptions)
videoStream.addTrack(videoTracks[i]);
}
}
-
- var audioMuted = (usageOptions && usageOptions.audio != 1),
- videoMuted = (usageOptions && usageOptions.video != 1);
-
- var audioGUM = (!usageOptions || usageOptions.audio != -1),
- videoGUM = (!usageOptions || usageOptions.video != -1);
-
-
- this.service.createLocalStream(audioStream, "audio", null, null,
- audioMuted, audioGUM);
-
- this.service.createLocalStream(videoStream, "video", null, null,
- videoMuted, videoGUM);
}
else
{//firefox
- this.service.createLocalStream(stream, "stream");
+ audioStream = stream.audioStream;
+ videoStream = stream.videoStream;
}
+ var audioMuted = (usageOptions && usageOptions.audio != 1),
+ videoMuted = (usageOptions && usageOptions.video != 1);
+
+ var audioGUM = (!usageOptions || usageOptions.audio != -1),
+ videoGUM = (!usageOptions || usageOptions.video != -1);
+
+ this.service.createLocalStream(audioStream, "audio", null, null,
+ audioMuted, audioGUM);
+
+ this.service.createLocalStream(videoStream, "video", null, null,
+ videoMuted, videoGUM);
};
RTCUtils.prototype.createStream = function(stream, isVideo)
@@ -1485,7 +1468,7 @@ RTCUtils.prototype.createStream = function(stream, isVideo)
module.exports = RTCUtils;
-},{"../../service/RTC/RTCBrowserType.js":96,"../../service/RTC/Resolutions":98}],9:[function(require,module,exports){
+},{"../../service/RTC/RTCBrowserType.js":95,"../../service/RTC/Resolutions":97}],8:[function(require,module,exports){
var UI = {};
var VideoLayout = require("./videolayout/VideoLayout.js");
@@ -2298,7 +2281,7 @@ UI.setVideoMute = setVideoMute;
module.exports = UI;
-},{"../../service/RTC/RTCEvents":97,"../../service/RTC/StreamEventTypes":99,"../../service/connectionquality/CQEvents":102,"../../service/desktopsharing/DesktopSharingEventTypes":103,"../../service/members/Events":104,"../../service/xmpp/XMPPEvents":106,"./../settings/Settings":40,"./audio_levels/AudioLevels.js":10,"./authentication/Authentication":12,"./avatar/Avatar":14,"./etherpad/Etherpad.js":15,"./prezi/Prezi.js":16,"./side_pannels/SidePanelToggler":18,"./side_pannels/chat/Chat.js":19,"./side_pannels/contactlist/ContactList":23,"./side_pannels/settings/SettingsMenu":24,"./toolbars/BottomToolbar":25,"./toolbars/Toolbar":26,"./toolbars/ToolbarToggler":27,"./util/MessageHandler":29,"./util/NicknameHandler":30,"./util/UIUtil":31,"./videolayout/VideoLayout.js":33,"./welcome_page/RoomnameGenerator":34,"./welcome_page/WelcomePage":35,"events":66}],10:[function(require,module,exports){
+},{"../../service/RTC/RTCEvents":96,"../../service/RTC/StreamEventTypes":98,"../../service/connectionquality/CQEvents":101,"../../service/desktopsharing/DesktopSharingEventTypes":102,"../../service/members/Events":103,"../../service/xmpp/XMPPEvents":105,"./../settings/Settings":39,"./audio_levels/AudioLevels.js":9,"./authentication/Authentication":11,"./avatar/Avatar":13,"./etherpad/Etherpad.js":14,"./prezi/Prezi.js":15,"./side_pannels/SidePanelToggler":17,"./side_pannels/chat/Chat.js":18,"./side_pannels/contactlist/ContactList":22,"./side_pannels/settings/SettingsMenu":23,"./toolbars/BottomToolbar":24,"./toolbars/Toolbar":25,"./toolbars/ToolbarToggler":26,"./util/MessageHandler":28,"./util/NicknameHandler":29,"./util/UIUtil":30,"./videolayout/VideoLayout.js":32,"./welcome_page/RoomnameGenerator":33,"./welcome_page/WelcomePage":34,"events":65}],9:[function(require,module,exports){
var CanvasUtil = require("./CanvasUtils");
var ASDrawContext = $('#activeSpeakerAudioLevel')[0].getContext('2d');
@@ -2564,7 +2547,7 @@ var AudioLevels = (function(my) {
})(AudioLevels || {});
module.exports = AudioLevels;
-},{"./CanvasUtils":11}],11:[function(require,module,exports){
+},{"./CanvasUtils":10}],10:[function(require,module,exports){
/**
* Utility class for drawing canvas shapes.
*/
@@ -2676,7 +2659,7 @@ var CanvasUtil = (function(my) {
})(CanvasUtil || {});
module.exports = CanvasUtil;
-},{}],12:[function(require,module,exports){
+},{}],11:[function(require,module,exports){
/* global $, APP*/
var LoginDialog = require('./LoginDialog');
@@ -2801,7 +2784,7 @@ var Authentication = {
};
module.exports = Authentication;
-},{"../../xmpp/moderator":55,"./LoginDialog":13}],13:[function(require,module,exports){
+},{"../../xmpp/moderator":54,"./LoginDialog":12}],12:[function(require,module,exports){
/* global $, APP, config*/
var XMPP = require('../../xmpp/xmpp');
@@ -3030,7 +3013,7 @@ var LoginDialog = {
};
module.exports = LoginDialog;
-},{"../../xmpp/moderator":55,"../../xmpp/xmpp":63}],14:[function(require,module,exports){
+},{"../../xmpp/moderator":54,"../../xmpp/xmpp":62}],13:[function(require,module,exports){
var Settings = require("../../settings/Settings");
var MediaStreamType = require("../../../service/RTC/MediaStreamTypes");
@@ -3193,7 +3176,7 @@ var Avatar = {
module.exports = Avatar;
-},{"../../../service/RTC/MediaStreamTypes":95,"../../settings/Settings":40,"../videolayout/VideoLayout":33}],15:[function(require,module,exports){
+},{"../../../service/RTC/MediaStreamTypes":94,"../../settings/Settings":39,"../videolayout/VideoLayout":32}],14:[function(require,module,exports){
/* global $, config,
setLargeVideoVisible, Util */
@@ -3389,7 +3372,7 @@ var Etherpad = {
module.exports = Etherpad;
-},{"../prezi/Prezi":16,"../util/UIUtil":31,"../videolayout/VideoLayout":33}],16:[function(require,module,exports){
+},{"../prezi/Prezi":15,"../util/UIUtil":30,"../videolayout/VideoLayout":32}],15:[function(require,module,exports){
var ToolbarToggler = require("../toolbars/ToolbarToggler");
var UIUtil = require("../util/UIUtil");
var VideoLayout = require("../videolayout/VideoLayout");
@@ -3765,7 +3748,7 @@ $(window).resize(function () {
module.exports = Prezi;
-},{"../toolbars/ToolbarToggler":27,"../util/MessageHandler":29,"../util/UIUtil":31,"../videolayout/VideoLayout":33,"./PreziPlayer":17}],17:[function(require,module,exports){
+},{"../toolbars/ToolbarToggler":26,"../util/MessageHandler":28,"../util/UIUtil":30,"../videolayout/VideoLayout":32,"./PreziPlayer":16}],16:[function(require,module,exports){
(function() {
"use strict";
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
@@ -4061,7 +4044,7 @@ module.exports = Prezi;
module.exports = PreziPlayer;
-},{}],18:[function(require,module,exports){
+},{}],17:[function(require,module,exports){
var Chat = require("./chat/Chat");
var ContactList = require("./contactlist/ContactList");
var Settings = require("./../../settings/Settings");
@@ -4318,7 +4301,7 @@ var PanelToggler = (function(my) {
}(PanelToggler || {}));
module.exports = PanelToggler;
-},{"../toolbars/ToolbarToggler":27,"../util/UIUtil":31,"../videolayout/VideoLayout":33,"./../../settings/Settings":40,"./chat/Chat":19,"./contactlist/ContactList":23,"./settings/SettingsMenu":24}],19:[function(require,module,exports){
+},{"../toolbars/ToolbarToggler":26,"../util/UIUtil":30,"../videolayout/VideoLayout":32,"./../../settings/Settings":39,"./chat/Chat":18,"./contactlist/ContactList":22,"./settings/SettingsMenu":23}],18:[function(require,module,exports){
/* global $, Util, nickname:true */
var Replacement = require("./Replacement");
var CommandsProcessor = require("./Commands");
@@ -4676,7 +4659,7 @@ var Chat = (function (my) {
return my;
}(Chat || {}));
module.exports = Chat;
-},{"../../../../service/UI/UIEvents":100,"../../toolbars/ToolbarToggler":27,"../../util/NicknameHandler":30,"../../util/UIUtil":31,"../SidePanelToggler":18,"./Commands":20,"./Replacement":21,"./smileys.json":22}],20:[function(require,module,exports){
+},{"../../../../service/UI/UIEvents":99,"../../toolbars/ToolbarToggler":26,"../../util/NicknameHandler":29,"../../util/UIUtil":30,"../SidePanelToggler":17,"./Commands":19,"./Replacement":20,"./smileys.json":21}],19:[function(require,module,exports){
var UIUtil = require("../../util/UIUtil");
/**
@@ -4774,7 +4757,7 @@ CommandsProcessor.prototype.processCommand = function()
};
module.exports = CommandsProcessor;
-},{"../../util/UIUtil":31}],21:[function(require,module,exports){
+},{"../../util/UIUtil":30}],20:[function(require,module,exports){
var Smileys = require("./smileys.json");
/**
* Processes links and smileys in "body"
@@ -4838,7 +4821,7 @@ module.exports = {
linkify: linkify
};
-},{"./smileys.json":22}],22:[function(require,module,exports){
+},{"./smileys.json":21}],21:[function(require,module,exports){
module.exports={
"smileys": {
"smiley1": ":)",
@@ -4888,7 +4871,7 @@ module.exports={
}
}
-},{}],23:[function(require,module,exports){
+},{}],22:[function(require,module,exports){
var numberOfContacts = 0;
var notificationInterval;
@@ -5078,7 +5061,7 @@ var ContactList = {
};
module.exports = ContactList;
-},{}],24:[function(require,module,exports){
+},{}],23:[function(require,module,exports){
var Avatar = require("../../avatar/Avatar");
var Settings = require("./../../../settings/Settings");
var UIUtil = require("../../util/UIUtil");
@@ -5159,7 +5142,7 @@ var SettingsMenu = {
module.exports = SettingsMenu;
-},{"../../../../service/translation/languages":105,"../../avatar/Avatar":14,"../../util/UIUtil":31,"./../../../settings/Settings":40}],25:[function(require,module,exports){
+},{"../../../../service/translation/languages":104,"../../avatar/Avatar":13,"../../util/UIUtil":30,"./../../../settings/Settings":39}],24:[function(require,module,exports){
var PanelToggler = require("../side_pannels/SidePanelToggler");
var buttonHandlers = {
@@ -5204,7 +5187,7 @@ var BottomToolbar = (function (my) {
module.exports = BottomToolbar;
-},{"../side_pannels/SidePanelToggler":18}],26:[function(require,module,exports){
+},{"../side_pannels/SidePanelToggler":17}],25:[function(require,module,exports){
/* global APP,$, buttonClick, config, lockRoom,
setSharedKey, Util */
var messageHandler = require("../util/MessageHandler");
@@ -5853,7 +5836,7 @@ var Toolbar = (function (my) {
}(Toolbar || {}));
module.exports = Toolbar;
-},{"../../../service/authentication/AuthenticationEvents":101,"../authentication/Authentication":12,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/SidePanelToggler":18,"../util/MessageHandler":29,"../util/UIUtil":31,"./BottomToolbar":25}],27:[function(require,module,exports){
+},{"../../../service/authentication/AuthenticationEvents":100,"../authentication/Authentication":11,"../etherpad/Etherpad":14,"../prezi/Prezi":15,"../side_pannels/SidePanelToggler":17,"../util/MessageHandler":28,"../util/UIUtil":30,"./BottomToolbar":24}],26:[function(require,module,exports){
/* global $, interfaceConfig, Moderator, DesktopStreaming.showDesktopSharingButton */
var toolbarTimeoutObject,
@@ -5968,7 +5951,7 @@ var ToolbarToggler = {
};
module.exports = ToolbarToggler;
-},{}],28:[function(require,module,exports){
+},{}],27:[function(require,module,exports){
var JitsiPopover = (function () {
/**
* Constructs new JitsiPopover and attaches it to the element
@@ -6092,7 +6075,7 @@ var JitsiPopover = (function () {
})();
module.exports = JitsiPopover;
-},{}],29:[function(require,module,exports){
+},{}],28:[function(require,module,exports){
/* global $, APP, jQuery, toastr */
var messageHandler = (function(my) {
@@ -6300,7 +6283,7 @@ module.exports = messageHandler;
-},{}],30:[function(require,module,exports){
+},{}],29:[function(require,module,exports){
var UIEvents = require("../../../service/UI/UIEvents");
var nickname = null;
@@ -6331,7 +6314,7 @@ var NickanameHandler = {
};
module.exports = NickanameHandler;
-},{"../../../service/UI/UIEvents":100}],31:[function(require,module,exports){
+},{"../../../service/UI/UIEvents":99}],30:[function(require,module,exports){
/**
* Created by hristo on 12/22/14.
*/
@@ -6413,7 +6396,7 @@ module.exports = {
};
-},{"../side_pannels/SidePanelToggler":18}],32:[function(require,module,exports){
+},{"../side_pannels/SidePanelToggler":17}],31:[function(require,module,exports){
var JitsiPopover = require("../util/JitsiPopover");
/**
@@ -6841,7 +6824,7 @@ ConnectionIndicator.prototype.hideIndicator = function () {
};
module.exports = ConnectionIndicator;
-},{"../util/JitsiPopover":28}],33:[function(require,module,exports){
+},{"../util/JitsiPopover":27}],32:[function(require,module,exports){
var AudioLevels = require("../audio_levels/AudioLevels");
var Avatar = require("../avatar/Avatar");
var Chat = require("../side_pannels/chat/Chat");
@@ -9160,7 +9143,7 @@ var VideoLayout = (function (my) {
}(VideoLayout || {}));
module.exports = VideoLayout;
-},{"../../../service/RTC/MediaStreamTypes":95,"../../../service/UI/UIEvents":100,"../audio_levels/AudioLevels":10,"../avatar/Avatar":14,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/chat/Chat":19,"../side_pannels/contactlist/ContactList":23,"../util/NicknameHandler":30,"../util/UIUtil":31,"./ConnectionIndicator":32}],34:[function(require,module,exports){
+},{"../../../service/RTC/MediaStreamTypes":94,"../../../service/UI/UIEvents":99,"../audio_levels/AudioLevels":9,"../avatar/Avatar":13,"../etherpad/Etherpad":14,"../prezi/Prezi":15,"../side_pannels/chat/Chat":18,"../side_pannels/contactlist/ContactList":22,"../util/NicknameHandler":29,"../util/UIUtil":30,"./ConnectionIndicator":31}],33:[function(require,module,exports){
//var nouns = [
//];
var pluralNouns = [
@@ -9341,7 +9324,7 @@ var RoomNameGenerator = {
module.exports = RoomNameGenerator;
-},{}],35:[function(require,module,exports){
+},{}],34:[function(require,module,exports){
var animateTimeout, updateTimeout;
var RoomNameGenerator = require("./RoomnameGenerator");
@@ -9443,7 +9426,7 @@ function setupWelcomePage()
}
module.exports = setupWelcomePage;
-},{"./RoomnameGenerator":34}],36:[function(require,module,exports){
+},{"./RoomnameGenerator":33}],35:[function(require,module,exports){
var EventEmitter = require("events");
var eventEmitter = new EventEmitter();
var CQEvents = require("../../service/connectionquality/CQEvents");
@@ -9578,7 +9561,7 @@ var ConnectionQuality = {
};
module.exports = ConnectionQuality;
-},{"../../service/connectionquality/CQEvents":102,"../../service/xmpp/XMPPEvents":106,"events":66}],37:[function(require,module,exports){
+},{"../../service/connectionquality/CQEvents":101,"../../service/xmpp/XMPPEvents":105,"events":65}],36:[function(require,module,exports){
/* global $, alert, APP, changeLocalVideo, chrome, config, getConferenceHandler,
getUserMediaWithConstraints */
/**
@@ -9946,7 +9929,7 @@ module.exports = {
};
-},{"../../service/desktopsharing/DesktopSharingEventTypes":103,"events":66}],38:[function(require,module,exports){
+},{"../../service/desktopsharing/DesktopSharingEventTypes":102,"events":65}],37:[function(require,module,exports){
//maps keycode to character, id of popover for given function and function
var shortcuts = {
67: {
@@ -10039,7 +10022,7 @@ var KeyboardShortcut = {
module.exports = KeyboardShortcut;
-},{}],39:[function(require,module,exports){
+},{}],38:[function(require,module,exports){
/* global APP */
/**
@@ -10164,7 +10147,7 @@ var Members = {
module.exports = Members;
-},{"../../service/members/Events":104,"../../service/xmpp/XMPPEvents":106,"events":66}],40:[function(require,module,exports){
+},{"../../service/members/Events":103,"../../service/xmpp/XMPPEvents":105,"events":65}],39:[function(require,module,exports){
var email = '';
var displayName = '';
var userId;
@@ -10231,7 +10214,7 @@ var Settings =
module.exports = Settings;
-},{}],41:[function(require,module,exports){
+},{}],40:[function(require,module,exports){
/**
*
* @constructor
@@ -10264,7 +10247,7 @@ SimulcastLogger.prototype.error = function (text) {
};
module.exports = SimulcastLogger;
-},{}],42:[function(require,module,exports){
+},{}],41:[function(require,module,exports){
var SimulcastLogger = require("./SimulcastLogger");
var SimulcastUtils = require("./SimulcastUtils");
var MediaStreamType = require("../../service/RTC/MediaStreamTypes");
@@ -10533,7 +10516,7 @@ SimulcastReceiver.prototype.transformRemoteDescription = function (desc) {
};
module.exports = SimulcastReceiver;
-},{"../../service/RTC/MediaStreamTypes":95,"./SimulcastLogger":41,"./SimulcastUtils":44}],43:[function(require,module,exports){
+},{"../../service/RTC/MediaStreamTypes":94,"./SimulcastLogger":40,"./SimulcastUtils":43}],42:[function(require,module,exports){
var SimulcastLogger = require("./SimulcastLogger");
var SimulcastUtils = require("./SimulcastUtils");
@@ -11056,7 +11039,7 @@ module.exports = {
"no": NoSimulcastSender
}
-},{"./SimulcastLogger":41,"./SimulcastUtils":44}],44:[function(require,module,exports){
+},{"./SimulcastLogger":40,"./SimulcastUtils":43}],43:[function(require,module,exports){
var SimulcastLogger = require("./SimulcastLogger");
/**
@@ -11290,7 +11273,7 @@ SimulcastUtils.prototype._compileVideoSources = function (videoSources) {
};
module.exports = SimulcastUtils;
-},{"./SimulcastLogger":41}],45:[function(require,module,exports){
+},{"./SimulcastLogger":40}],44:[function(require,module,exports){
/*jslint plusplus: true */
/*jslint nomen: true*/
@@ -11493,7 +11476,7 @@ SimulcastManager.prototype.resetSender = function() {
var simulcast = new SimulcastManager();
module.exports = simulcast;
-},{"../../service/RTC/RTCEvents":97,"./SimulcastReceiver":42,"./SimulcastSender":43,"./SimulcastUtils":44}],46:[function(require,module,exports){
+},{"../../service/RTC/RTCEvents":96,"./SimulcastReceiver":41,"./SimulcastSender":42,"./SimulcastUtils":43}],45:[function(require,module,exports){
/**
* Provides statistics for the local stream.
*/
@@ -11624,7 +11607,7 @@ LocalStatsCollector.prototype.stop = function () {
};
module.exports = LocalStatsCollector;
-},{}],47:[function(require,module,exports){
+},{}],46:[function(require,module,exports){
/* global ssrc2jid */
/* jshint -W117 */
var RTCBrowserType = require("../../service/RTC/RTCBrowserType");
@@ -11887,7 +11870,7 @@ StatsCollector.prototype.start = function ()
);
}
- if(!config.disableStats) {
+ if(!config.disableStats && !navigator.mozGetUserMedia) {
this.statsIntervalId = setInterval(
function () {
// Interval updates
@@ -12365,7 +12348,7 @@ StatsCollector.prototype.processAudioLevelReport = function ()
};
-},{"../../service/RTC/RTCBrowserType":96}],48:[function(require,module,exports){
+},{"../../service/RTC/RTCBrowserType":95}],47:[function(require,module,exports){
/**
* Created by hristo on 8/4/14.
*/
@@ -12498,7 +12481,7 @@ var statistics =
module.exports = statistics;
-},{"../../service/RTC/StreamEventTypes.js":99,"../../service/xmpp/XMPPEvents":106,"./LocalStatsCollector.js":46,"./RTPStatsCollector.js":47,"events":66}],49:[function(require,module,exports){
+},{"../../service/RTC/StreamEventTypes.js":98,"../../service/xmpp/XMPPEvents":105,"./LocalStatsCollector.js":45,"./RTPStatsCollector.js":46,"events":65}],48:[function(require,module,exports){
var i18n = require("i18next-client");
var languages = require("../../service/translation/languages");
var Settings = require("../settings/Settings");
@@ -12632,7 +12615,7 @@ module.exports = {
}
};
-},{"../../service/translation/languages":105,"../settings/Settings":40,"i18next-client":67}],50:[function(require,module,exports){
+},{"../../service/translation/languages":104,"../settings/Settings":39,"i18next-client":66}],49:[function(require,module,exports){
/* jshint -W117 */
var TraceablePeerConnection = require("./TraceablePeerConnection");
var SDPDiffer = require("./SDPDiffer");
@@ -13985,7 +13968,7 @@ JingleSession.prototype.remoteStreamAdded = function (data, times) {
module.exports = JingleSession;
-},{"../../service/RTC/RTCBrowserType":96,"./SDP":51,"./SDPDiffer":52,"./SDPUtil":53,"./TraceablePeerConnection":54,"async":64}],51:[function(require,module,exports){
+},{"../../service/RTC/RTCBrowserType":95,"./SDP":50,"./SDPDiffer":51,"./SDPUtil":52,"./TraceablePeerConnection":53,"async":63}],50:[function(require,module,exports){
/* jshint -W117 */
var SDPUtil = require("./SDPUtil");
@@ -14607,7 +14590,7 @@ SDP.prototype.jingle2media = function (content) {
module.exports = SDP;
-},{"./SDPUtil":53}],52:[function(require,module,exports){
+},{"./SDPUtil":52}],51:[function(require,module,exports){
function SDPDiffer(mySDP, otherSDP) {
this.mySDP = mySDP;
this.otherSDP = otherSDP;
@@ -14773,7 +14756,7 @@ SDPDiffer.prototype.toJingle = function(modify) {
};
module.exports = SDPDiffer;
-},{}],53:[function(require,module,exports){
+},{}],52:[function(require,module,exports){
SDPUtil = {
iceparams: function (mediadesc, sessiondesc) {
var data = null;
@@ -15123,7 +15106,7 @@ SDPUtil = {
}
};
module.exports = SDPUtil;
-},{}],54:[function(require,module,exports){
+},{}],53:[function(require,module,exports){
function TraceablePeerConnection(ice_config, constraints) {
var self = this;
var RTCPeerconnection = navigator.mozGetUserMedia ? mozRTCPeerConnection : webkitRTCPeerConnection;
@@ -15305,7 +15288,7 @@ TraceablePeerConnection.prototype.setLocalDescription = function (description, s
this.trace('setLocalDescription::preTransform (Plan B)', dumpSDP(description));
// if we're running on FF, transform to Plan A first.
if (navigator.mozGetUserMedia) {
- description = this.interop.toPlanA(description);
+ description = this.interop.toUnifiedPlan(description);
} else {
description = APP.simulcast.transformLocalDescription(description);
}
@@ -15332,7 +15315,7 @@ TraceablePeerConnection.prototype.setRemoteDescription = function (description,
this.trace('setRemoteDescription::preTransform (Plan B)', dumpSDP(description));
// if we're running on FF, transform to Plan A first.
if (navigator.mozGetUserMedia) {
- description = this.interop.toPlanA(description);
+ description = this.interop.toUnifiedPlan(description);
}
else {
description = APP.simulcast.transformRemoteDescription(description);
@@ -15443,7 +15426,7 @@ TraceablePeerConnection.prototype.getStats = function(callback, errback) {
module.exports = TraceablePeerConnection;
-},{"sdp-interop":88}],55:[function(require,module,exports){
+},{"sdp-interop":87}],54:[function(require,module,exports){
/* global $, $iq, APP, config, connection, UI, messageHandler,
roomName, sessionTerminated, Strophe, Util */
var XMPPEvents = require("../../service/xmpp/XMPPEvents");
@@ -15861,7 +15844,7 @@ module.exports = Moderator;
-},{"../../service/authentication/AuthenticationEvents":101,"../../service/xmpp/XMPPEvents":106,"../settings/Settings":40}],56:[function(require,module,exports){
+},{"../../service/authentication/AuthenticationEvents":100,"../../service/xmpp/XMPPEvents":105,"../settings/Settings":39}],55:[function(require,module,exports){
/* global $, $iq, config, connection, focusMucJid, messageHandler, Moderator,
Toolbar, Util */
var Moderator = require("./moderator");
@@ -16017,7 +16000,7 @@ var Recording = {
}
module.exports = Recording;
-},{"./moderator":55}],57:[function(require,module,exports){
+},{"./moderator":54}],56:[function(require,module,exports){
/* jshint -W117 */
/* a simple MUC connection plugin
* can only handle a single MUC room
@@ -16684,7 +16667,7 @@ module.exports = function(XMPP, eventEmitter) {
};
-},{"../../service/xmpp/XMPPEvents":106,"./JingleSession":50,"./moderator":55}],58:[function(require,module,exports){
+},{"../../service/xmpp/XMPPEvents":105,"./JingleSession":49,"./moderator":54}],57:[function(require,module,exports){
/* jshint -W117 */
var JingleSession = require("./JingleSession");
@@ -17023,7 +17006,7 @@ module.exports = function(XMPP, eventEmitter)
};
-},{"../../service/xmpp/XMPPEvents":106,"./JingleSession":50}],59:[function(require,module,exports){
+},{"../../service/xmpp/XMPPEvents":105,"./JingleSession":49}],58:[function(require,module,exports){
/* global Strophe */
module.exports = function () {
@@ -17044,7 +17027,7 @@ module.exports = function () {
}
});
};
-},{}],60:[function(require,module,exports){
+},{}],59:[function(require,module,exports){
/* global $, $iq, config, connection, focusMucJid, forceMuted,
setAudioMuted, Strophe */
/**
@@ -17103,7 +17086,7 @@ module.exports = function (XMPP) {
}
});
}
-},{}],61:[function(require,module,exports){
+},{}],60:[function(require,module,exports){
/* jshint -W117 */
module.exports = function() {
Strophe.addConnectionPlugin('rayo',
@@ -17200,7 +17183,7 @@ module.exports = function() {
);
};
-},{}],62:[function(require,module,exports){
+},{}],61:[function(require,module,exports){
/**
* Strophe logger implementation. Logs from level WARN and above.
*/
@@ -17244,7 +17227,7 @@ module.exports = function () {
};
};
-},{}],63:[function(require,module,exports){
+},{}],62:[function(require,module,exports){
/* global $, APP, config, Strophe*/
var Moderator = require("./moderator");
var EventEmitter = require("events");
@@ -17832,7 +17815,7 @@ var XMPP = {
module.exports = XMPP;
-},{"../../service/RTC/RTCEvents":97,"../../service/RTC/StreamEventTypes":99,"../../service/UI/UIEvents":100,"../../service/xmpp/XMPPEvents":106,"../settings/Settings":40,"./SDP":51,"./moderator":55,"./recording":56,"./strophe.emuc":57,"./strophe.jingle":58,"./strophe.logger":59,"./strophe.moderate":60,"./strophe.rayo":61,"./strophe.util":62,"events":66,"pako":68,"retry":84}],64:[function(require,module,exports){
+},{"../../service/RTC/RTCEvents":96,"../../service/RTC/StreamEventTypes":98,"../../service/UI/UIEvents":99,"../../service/xmpp/XMPPEvents":105,"../settings/Settings":39,"./SDP":50,"./moderator":54,"./recording":55,"./strophe.emuc":56,"./strophe.jingle":57,"./strophe.logger":58,"./strophe.moderate":59,"./strophe.rayo":60,"./strophe.util":61,"events":65,"pako":67,"retry":83}],63:[function(require,module,exports){
(function (process){
/*!
* async
@@ -18959,38 +18942,70 @@ module.exports = XMPP;
}());
}).call(this,require('_process'))
-},{"_process":65}],65:[function(require,module,exports){
+},{"_process":64}],64:[function(require,module,exports){
// shim for using process in browser
var process = module.exports = {};
var queue = [];
var draining = false;
+var currentQueue;
+var queueIndex = -1;
+
+function cleanUpNextTick() {
+ draining = false;
+ if (currentQueue.length) {
+ queue = currentQueue.concat(queue);
+ } else {
+ queueIndex = -1;
+ }
+ if (queue.length) {
+ drainQueue();
+ }
+}
function drainQueue() {
if (draining) {
return;
}
+ var timeout = setTimeout(cleanUpNextTick);
draining = true;
- var currentQueue;
+
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
- var i = -1;
- while (++i < len) {
- currentQueue[i]();
+ while (++queueIndex < len) {
+ currentQueue[queueIndex].run();
}
+ queueIndex = -1;
len = queue.length;
}
+ currentQueue = null;
draining = false;
+ clearTimeout(timeout);
}
+
process.nextTick = function (fun) {
- queue.push(fun);
+ var args = new Array(arguments.length - 1);
+ if (arguments.length > 1) {
+ for (var i = 1; i < arguments.length; i++) {
+ args[i - 1] = arguments[i];
+ }
+ }
+ queue.push(new Item(fun, args));
if (!draining) {
setTimeout(drainQueue, 0);
}
};
+// v8 likes predictible objects
+function Item(fun, array) {
+ this.fun = fun;
+ this.array = array;
+}
+Item.prototype.run = function () {
+ this.fun.apply(null, this.array);
+};
process.title = 'browser';
process.browser = true;
process.env = {};
@@ -19019,7 +19034,7 @@ process.chdir = function (dir) {
};
process.umask = function() { return 0; };
-},{}],66:[function(require,module,exports){
+},{}],65:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
@@ -19322,7 +19337,7 @@ function isUndefined(arg) {
return arg === void 0;
}
-},{}],67:[function(require,module,exports){
+},{}],66:[function(require,module,exports){
// i18next, v1.7.7
// Copyright (c)2014 Jan Mühlemann (jamuhl).
// Distributed under MIT license
@@ -21445,7 +21460,7 @@ function isUndefined(arg) {
i18n.options = o;
})();
-},{"jquery":"jquery"}],68:[function(require,module,exports){
+},{"jquery":"jquery"}],67:[function(require,module,exports){
// Top level file is just a mixin of submodules & constants
'use strict';
@@ -21460,7 +21475,7 @@ var pako = {};
assign(pako, deflate, inflate, constants);
module.exports = pako;
-},{"./lib/deflate":69,"./lib/inflate":70,"./lib/utils/common":71,"./lib/zlib/constants":74}],69:[function(require,module,exports){
+},{"./lib/deflate":68,"./lib/inflate":69,"./lib/utils/common":70,"./lib/zlib/constants":73}],68:[function(require,module,exports){
'use strict';
@@ -21825,7 +21840,7 @@ exports.Deflate = Deflate;
exports.deflate = deflate;
exports.deflateRaw = deflateRaw;
exports.gzip = gzip;
-},{"./utils/common":71,"./utils/strings":72,"./zlib/deflate.js":76,"./zlib/messages":81,"./zlib/zstream":83}],70:[function(require,module,exports){
+},{"./utils/common":70,"./utils/strings":71,"./zlib/deflate.js":75,"./zlib/messages":80,"./zlib/zstream":82}],69:[function(require,module,exports){
'use strict';
@@ -22194,7 +22209,7 @@ exports.inflate = inflate;
exports.inflateRaw = inflateRaw;
exports.ungzip = inflate;
-},{"./utils/common":71,"./utils/strings":72,"./zlib/constants":74,"./zlib/gzheader":77,"./zlib/inflate.js":79,"./zlib/messages":81,"./zlib/zstream":83}],71:[function(require,module,exports){
+},{"./utils/common":70,"./utils/strings":71,"./zlib/constants":73,"./zlib/gzheader":76,"./zlib/inflate.js":78,"./zlib/messages":80,"./zlib/zstream":82}],70:[function(require,module,exports){
'use strict';
@@ -22297,7 +22312,7 @@ exports.setTyped = function (on) {
};
exports.setTyped(TYPED_OK);
-},{}],72:[function(require,module,exports){
+},{}],71:[function(require,module,exports){
// String encode/decode helpers
'use strict';
@@ -22484,7 +22499,7 @@ exports.utf8border = function(buf, max) {
return (pos + _utf8len[buf[pos]] > max) ? pos : max;
};
-},{"./common":71}],73:[function(require,module,exports){
+},{"./common":70}],72:[function(require,module,exports){
'use strict';
// Note: adler32 takes 12% for level 0 and 2% for level 6.
@@ -22517,7 +22532,7 @@ function adler32(adler, buf, len, pos) {
module.exports = adler32;
-},{}],74:[function(require,module,exports){
+},{}],73:[function(require,module,exports){
module.exports = {
/* Allowed flush values; see deflate() and inflate() below for details */
@@ -22565,7 +22580,7 @@ module.exports = {
Z_DEFLATED: 8
//Z_NULL: null // Use -1 or null inline, depending on var type
};
-},{}],75:[function(require,module,exports){
+},{}],74:[function(require,module,exports){
'use strict';
// Note: we can't get significant speed boost here.
@@ -22607,7 +22622,7 @@ function crc32(crc, buf, len, pos) {
module.exports = crc32;
-},{}],76:[function(require,module,exports){
+},{}],75:[function(require,module,exports){
'use strict';
var utils = require('../utils/common');
@@ -24373,7 +24388,7 @@ exports.deflatePending = deflatePending;
exports.deflatePrime = deflatePrime;
exports.deflateTune = deflateTune;
*/
-},{"../utils/common":71,"./adler32":73,"./crc32":75,"./messages":81,"./trees":82}],77:[function(require,module,exports){
+},{"../utils/common":70,"./adler32":72,"./crc32":74,"./messages":80,"./trees":81}],76:[function(require,module,exports){
'use strict';
@@ -24414,7 +24429,7 @@ function GZheader() {
}
module.exports = GZheader;
-},{}],78:[function(require,module,exports){
+},{}],77:[function(require,module,exports){
'use strict';
// See state defs from inflate.js
@@ -24741,7 +24756,7 @@ module.exports = function inflate_fast(strm, start) {
return;
};
-},{}],79:[function(require,module,exports){
+},{}],78:[function(require,module,exports){
'use strict';
@@ -26245,7 +26260,7 @@ exports.inflateSync = inflateSync;
exports.inflateSyncPoint = inflateSyncPoint;
exports.inflateUndermine = inflateUndermine;
*/
-},{"../utils/common":71,"./adler32":73,"./crc32":75,"./inffast":78,"./inftrees":80}],80:[function(require,module,exports){
+},{"../utils/common":70,"./adler32":72,"./crc32":74,"./inffast":77,"./inftrees":79}],79:[function(require,module,exports){
'use strict';
@@ -26572,7 +26587,7 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta
return 0;
};
-},{"../utils/common":71}],81:[function(require,module,exports){
+},{"../utils/common":70}],80:[function(require,module,exports){
'use strict';
module.exports = {
@@ -26586,7 +26601,7 @@ module.exports = {
'-5': 'buffer error', /* Z_BUF_ERROR (-5) */
'-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */
};
-},{}],82:[function(require,module,exports){
+},{}],81:[function(require,module,exports){
'use strict';
@@ -27786,7 +27801,7 @@ exports._tr_stored_block = _tr_stored_block;
exports._tr_flush_block = _tr_flush_block;
exports._tr_tally = _tr_tally;
exports._tr_align = _tr_align;
-},{"../utils/common":71}],83:[function(require,module,exports){
+},{"../utils/common":70}],82:[function(require,module,exports){
'use strict';
@@ -27816,9 +27831,9 @@ function ZStream() {
}
module.exports = ZStream;
-},{}],84:[function(require,module,exports){
+},{}],83:[function(require,module,exports){
module.exports = require('./lib/retry');
-},{"./lib/retry":85}],85:[function(require,module,exports){
+},{"./lib/retry":84}],84:[function(require,module,exports){
var RetryOperation = require('./retry_operation');
exports.operation = function(options) {
@@ -27869,7 +27884,7 @@ exports._createTimeout = function(attempt, opts) {
return timeout;
};
-},{"./retry_operation":86}],86:[function(require,module,exports){
+},{"./retry_operation":85}],85:[function(require,module,exports){
function RetryOperation(timeouts) {
this._timeouts = timeouts;
this._fn = null;
@@ -27979,7 +27994,7 @@ RetryOperation.prototype.mainError = function() {
return mainError;
};
-},{}],87:[function(require,module,exports){
+},{}],86:[function(require,module,exports){
module.exports = function arrayEquals(array) {
// if the other array is a falsy value, return
if (!array)
@@ -28005,27 +28020,30 @@ module.exports = function arrayEquals(array) {
}
-},{}],88:[function(require,module,exports){
+},{}],87:[function(require,module,exports){
exports.Interop = require('./interop');
-},{"./interop":89}],89:[function(require,module,exports){
+},{"./interop":88}],88:[function(require,module,exports){
var transform = require('./transform');
var arrayEquals = require('./array-equals');
-function Interop() { }
+function Interop() {
+
+ /**
+ * This map holds the most recent Unified Plan offer/answer SDP that was
+ * converted to Plan B, with the SDP type ('offer' or 'answer') as keys and
+ * the SDP string as values.
+ *
+ * @type {{}}
+ */
+ this.cache = {};
+}
+
module.exports = Interop;
-/**
- * This map holds the most recent Plan A offer/answer SDP that was converted
- * to Plan B, with the SDP type ('offer' or 'answer') as keys and the SDP
- * string as values.
- *
- * @type {{}}
- */
-var cache = {};
/**
- * This method transforms a Plan A SDP to an equivalent Plan B SDP. A
+ * This method transforms a Unified Plan SDP to an equivalent Plan B SDP. A
* PeerConnection wrapper transforms the SDP to Plan B before passing it to the
* application.
*
@@ -28052,22 +28070,22 @@ Interop.prototype.toPlanB = function(desc) {
return desc;
}
- // Try some heuristics to "make sure" this is a Plan A SDP. Plan B SDP has
- // a video, an audio and a data "channel" at most.
+ // Try some heuristics to "make sure" this is a Unified Plan SDP. Plan B
+ // SDP has a video, an audio and a data "channel" at most.
if (session.media.length <= 3 && session.media.every(function(m) {
return ['video', 'audio', 'data'].indexOf(m.mid) !== -1;
})) {
- console.warn('This description does not look like Plan A.');
+ console.warn('This description does not look like Unified Plan.');
return desc;
}
//#endregion
- // Plan A SDP is our "precious". Cache it for later use in the Plan B ->
- // Plan A transformation.
- cache[desc.type] = desc.sdp;
+ // Unified Plan SDP is our "precious". Cache it for later use in the Plan B
+ // -> Unified Plan transformation.
+ this.cache[desc.type] = desc.sdp;
- //#region Convert from Plan A to Plan B.
+ //#region Convert from Unified Plan to Plan B.
// We rebuild the session.media array.
var media = session.media;
@@ -28082,7 +28100,7 @@ Interop.prototype.toPlanB = function(desc) {
// loop.
var types = [];
- // Implode the Plan A m-lines/tracks into Plan B "channels".
+ // Implode the Unified Plan m-lines/tracks into Plan B "channels".
media.forEach(function(mLine) {
// rtcp-mux is required in the Plan B SDP.
@@ -28101,13 +28119,20 @@ Interop.prototype.toPlanB = function(desc) {
// Add sources to the channel and handle a=msid.
if (typeof mLine.sources === 'object') {
Object.keys(mLine.sources).forEach(function(ssrc) {
+ if (typeof channels[mLine.type].sources !== 'object')
+ channels[mLine.type].sources = {};
+
// Assign the sources to the channel.
channels[mLine.type].sources[ssrc] = mLine.sources[ssrc];
- // In Plan B the msid is an SSRC attribute. Also, we don't care
- // about the obsolete label and mslabel attributes.
- channels[mLine.type].sources[ssrc].msid = mLine.msid;
-
+ if (typeof mLine.msid !== 'undefined') {
+ // In Plan B the msid is an SSRC attribute. Also, we don't
+ // care about the obsolete label and mslabel attributes.
+ //
+ // Note that it is not guaranteed that the mLine will have
+ // an msid. recvonly channels in particular don't have one.
+ channels[mLine.type].sources[ssrc].msid = mLine.msid;
+ }
// NOTE ssrcs in ssrc groups will share msids, as
// draft-uberti-rtcweb-plan-00 mandates.
});
@@ -28151,11 +28176,9 @@ Interop.prototype.toPlanB = function(desc) {
});
// We regenerate the BUNDLE group with the new mids.
- session.groups.every(function(group) {
+ session.groups.some(function(group) {
if (group.type === 'BUNDLE') {
group.mids = types.join(' ');
- return false;
- } else {
return true;
}
});
@@ -28177,13 +28200,14 @@ Interop.prototype.toPlanB = function(desc) {
};
/**
- * This method transforms a Plan B SDP to an equivalent Plan A SDP. A
- * PeerConnection wrapper transforms the SDP to Plan A before passing it to FF.
+ * This method transforms a Plan B SDP to an equivalent Unified Plan SDP. A
+ * PeerConnection wrapper transforms the SDP to Unified Plan before passing it
+ * to FF.
*
* @param desc
* @returns {*}
*/
-Interop.prototype.toPlanA = function(desc) {
+Interop.prototype.toUnifiedPlan = function(desc) {
//#region Preliminary input validation.
@@ -28211,7 +28235,7 @@ Interop.prototype.toPlanA = function(desc) {
return desc;
}
- // Make sure this Plan B SDP can be converted to a Plan A SDP.
+ // Make sure this Plan B SDP can be converted to a Unified Plan SDP.
var mids = [];
session.media.forEach(function(m) {
mids.push(m.mid);
@@ -28227,47 +28251,47 @@ Interop.prototype.toPlanA = function(desc) {
}
if (!hasBundle) {
- throw new Error("Cannot convert to Plan A because m-lines that are " +
- "not bundled were found.");
+ throw new Error("Cannot convert to Unified Plan because m-lines that" +
+ " are not bundled were found.");
}
//#endregion
- //#region Convert from Plan B to Plan A.
+ //#region Convert from Plan B to Unified Plan.
// Unfortunately, a Plan B offer/answer doesn't have enough information to
- // rebuild an equivalent Plan A offer/answer.
+ // rebuild an equivalent Unified Plan offer/answer.
//
- // For example, if this is a local answer (in Plan A style) that we convert
- // to Plan B prior to handing it over to the application (the
+ // For example, if this is a local answer (in Unified Plan style) that we
+ // convert to Plan B prior to handing it over to the application (the
// PeerConnection wrapper called us, for instance, after a successful
// createAnswer), we want to remember the m-line at which we've seen the
// (local) SSRC. That's because when the application wants to do call the
// SLD method, forcing us to do the inverse transformation (from Plan B to
- // Plan A), we need to know to which m-line to assign the (local) SSRC. We
- // also need to know all the other m-lines that the original answer had and
- // include them in the transformed answer as well.
+ // Unified Plan), we need to know to which m-line to assign the (local)
+ // SSRC. We also need to know all the other m-lines that the original
+ // answer had and include them in the transformed answer as well.
//
// Another example is if this is a remote offer that we convert to Plan B
// prior to giving it to the application, we want to remember the mid at
// which we've seen the (remote) SSRC.
//
- // In the iteration that follows, we use the cached Plan A (if it exists)
- // to assign mids to ssrcs.
+ // In the iteration that follows, we use the cached Unified Plan (if it
+ // exists) to assign mids to ssrcs.
var cached;
- if (typeof cache[desc.type] !== 'undefined') {
- cached = transform.parse(cache[desc.type]);
+ if (typeof this.cache[desc.type] !== 'undefined') {
+ cached = transform.parse(this.cache[desc.type]);
}
// A helper map that sends mids to m-line objects. We use it later to
- // rebuild the Plan A style session.media array.
+ // rebuild the Unified Plan style session.media array.
var media = {};
session.media.forEach(function(channel) {
if (typeof channel.rtcpMux !== 'string' ||
channel.rtcpMux !== 'rtcp-mux') {
- throw new Error("Cannot convert to Plan A because m-lines " +
+ throw new Error("Cannot convert to Unified Plan because m-lines " +
"without the rtcp-mux attribute were found.");
}
@@ -28327,14 +28351,12 @@ Interop.prototype.toPlanA = function(desc) {
var mLine;
if (typeof invertedGroups[ssrc] !== 'undefined' &&
Array.isArray(invertedGroups[ssrc])) {
- invertedGroups[ssrc].every(function (ssrcGroup) {
+ invertedGroups[ssrc].some(function (ssrcGroup) {
// ssrcGroup.ssrcs *is* an Array, no need to check
// again here.
- return ssrcGroup.ssrcs.every(function (related) {
+ return ssrcGroup.ssrcs.some(function (related) {
if (typeof mLines[related] === 'object') {
mLine = mLines[related];
- return false;
- } else {
return true;
}
});
@@ -28346,65 +28368,72 @@ Interop.prototype.toPlanA = function(desc) {
mLine.sources[ssrc] = sources[ssrc];
delete sources[ssrc].msid;
} else {
- // Use the "channel" as a prototype for the "mLine".
- mLine = Object.create(channel);
- mLines[ssrc] = mLine;
-
- // Assign the msid of the source to the m-line.
- mLine.msid = sources[ssrc].msid;
- delete sources[ssrc].msid;
-
- // We assign one SSRC per media line.
- mLine.sources = {};
- mLine.sources[ssrc] = sources[ssrc];
- mLine.ssrcGroups = invertedGroups[ssrc];
-
- // Use the cached Plan A SDP (if it exists) to assign SSRCs to
- // mids.
- if (typeof cached !== 'undefined' &&
- typeof cached.media !== 'undefined' &&
- Array.isArray(cached.media)) {
-
- cached.media.forEach(function(m) {
- if (typeof m.sources === 'object') {
- Object.keys(m.sources).forEach(function(s) {
- if (s === ssrc) {
- mLine.mid = m.mid;
- }
- });
- }
- });
- }
+ // Use the "channel" as a prototype for the "mLine".
+ mLine = Object.create(channel);
+ mLines[ssrc] = mLine;
+
+ if (typeof sources[ssrc].msid !== 'undefined') {
+ // Assign the msid of the source to the m-line. Note
+ // that it is not guaranteed that the source will have
+ // msid. In particular "recvonly" sources don't have an
+ // msid. Note that "recvonly" is a term only defined
+ // for m-lines.
+ mLine.msid = sources[ssrc].msid;
+ delete sources[ssrc].msid;
+ }
- if (typeof mLine.mid === 'undefined') {
+ // We assign one SSRC per media line.
+ mLine.sources = {};
+ mLine.sources[ssrc] = sources[ssrc];
+ mLine.ssrcGroups = invertedGroups[ssrc];
+
+ // Use the cached Unified Plan SDP (if it exists) to assign
+ // SSRCs to mids.
+ if (typeof cached !== 'undefined' &&
+ typeof cached.media !== 'undefined' &&
+ Array.isArray(cached.media)) {
+
+ cached.media.forEach(function(m) {
+ if (typeof m.sources === 'object') {
+ Object.keys(m.sources).forEach(function(s) {
+ if (s === ssrc) {
+ mLine.mid = m.mid;
+ }
+ });
+ }
+ });
+ }
- // If this is an SSRC that we see for the first time assign
- // it a new mid. This is typically the case when this
- // method is called to transform a remote description for
- // the first time or when there is a new SSRC in the remote
- // description because a new peer has joined the
- // conference. Local SSRCs should have already been added
- // to the map in the toPlanB method.
- //
- // Because FF generates answers in Plan A style, we MUST
- // already have a cached answer with all the local SSRCs
- // mapped to some mLine/mid.
+ if (typeof mLine.mid === 'undefined') {
+
+ // If this is an SSRC that we see for the first time
+ // assign it a new mid. This is typically the case when
+ // this method is called to transform a remote
+ // description for the first time or when there is a
+ // new SSRC in the remote description because a new
+ // peer has joined the conference. Local SSRCs should
+ // have already been added to the map in the toPlanB
+ // method.
+ //
+ // Because FF generates answers in Unified Plan style,
+ // we MUST already have a cached answer with all the
+ // local SSRCs mapped to some mLine/mid.
+
+ if (desc.type === 'answer') {
+ throw new Error("An unmapped SSRC was found.");
+ }
- if (desc.type === 'answer') {
- throw new Error("An unmapped SSRC was found.");
+ mLine.mid = [channel.type, '-', ssrc].join('');
}
- mLine.mid = [channel.type, '-', ssrc].join('');
- }
-
- // Include the candidates in the 1st media line.
- mLine.candidates = candidates;
- mLine.iceUfrag = iceUfrag;
- mLine.icePwd = icePwd;
- mLine.fingerprint = fingerprint;
- mLine.port = port;
+ // Include the candidates in the 1st media line.
+ mLine.candidates = candidates;
+ mLine.iceUfrag = iceUfrag;
+ mLine.icePwd = icePwd;
+ mLine.fingerprint = fingerprint;
+ mLine.port = port;
- media[mLine.mid] = mLine;
+ media[mLine.mid] = mLine;
}
});
}
@@ -28422,12 +28451,12 @@ Interop.prototype.toPlanA = function(desc) {
// find the m-lines that are missing (from the converted answer), and
// use the cached answer to complete the converted answer.
- if (typeof cache['offer'] === 'undefined') {
+ if (typeof this.cache['offer'] === 'undefined') {
throw new Error("An answer is being processed but we couldn't " +
"find a cached offer.");
}
- var cachedOffer = transform.parse(cache['offer']);
+ var cachedOffer = transform.parse(this.cache['offer']);
if (typeof cachedOffer === 'undefined' ||
typeof cachedOffer.media === 'undefined' ||
@@ -28439,23 +28468,40 @@ Interop.prototype.toPlanA = function(desc) {
cachedOffer.media.forEach(function(mo) {
var mLine;
- if (typeof media[mo.mid] === 'undefined') {
-
- // This is probably an m-line containing a remote track only.
- // It MUST exist in the cached answer as a remote track only
- // mLine.
-
- cached.media.every(function(ma) {
- if (mo.mid == ma.mid) {
- mLine = ma;
- return false;
+ cached.media.some(function(ma) {
+ if (mo.mid == ma.mid) {
+ if (typeof media[mo.mid] === 'undefined') {
+
+ // This is either an m-line containing a remote
+ // track only, or an m-line containing a remote
+ // track and a local track that has been removed.
+ // In either case, it MUST exist in the cached
+ // answer.
+ //
+ // In case this is a removed local track, clean-up
+ // the m-line and make sure it's 'recvonly'.
+
+ // TODO sendonly -> inactive makes more sense.
+ delete ma.msid;
+ delete ma.sources;
+ delete ma.ssrcGroups;
+ if (!ma.direction
+ || ma.direction === 'sendonly'
+ || ma.direction === 'sendrecv')
+ ma.direction = 'recvonly';
} else {
- return true;
+ // This is an m-line/channel that contains a local
+ // track (sendrecv or sendonly channel) or it's a
+ // recvonly m-line/channel. In either case, since we're
+ // going from PlanB -> Unified Plan this m-line MUST
+ // exist in the cached answer.
}
- });
- } else {
- mLine = media[mo.mid];
- }
+
+ // assign the found object.
+ mLine = ma;
+ return true;
+ }
+ });
if (typeof mLine === 'undefined') {
throw new Error("The cached offer contains an m-line that " +
@@ -28503,11 +28549,9 @@ Interop.prototype.toPlanA = function(desc) {
}
// We regenerate the BUNDLE group (since we regenerated the mids)
- session.groups.every(function(group) {
+ session.groups.some(function(group) {
if (group.type === 'BUNDLE') {
group.mids = mids.join(' ');
- return false;
- } else {
return true;
}
});
@@ -28520,8 +28564,9 @@ Interop.prototype.toPlanA = function(desc) {
var resStr = transform.write(session);
- // Cache the transformed SDP (Plan A) for later re-use in this function.
- cache[desc.type] = resStr;
+ // Cache the transformed SDP (Unified Plan) for later re-use in this
+ // function.
+ this.cache[desc.type] = resStr;
return new RTCSessionDescription({
type: desc.type,
@@ -28531,7 +28576,7 @@ Interop.prototype.toPlanA = function(desc) {
//#endregion
};
-},{"./array-equals":87,"./transform":90}],90:[function(require,module,exports){
+},{"./array-equals":86,"./transform":89}],89:[function(require,module,exports){
var transform = require('sdp-transform');
exports.write = function(session, opts) {
@@ -28630,7 +28675,7 @@ exports.parse = function(sdp) {
};
-},{"sdp-transform":92}],91:[function(require,module,exports){
+},{"sdp-transform":91}],90:[function(require,module,exports){
var grammar = module.exports = {
v: [{
name: 'version',
@@ -28855,6 +28900,10 @@ var grammar = module.exports = {
name: 'rtcpMux',
reg: /^(rtcp-mux)/
},
+ { //a=rtcp-rsize
+ name: 'rtcpRsize',
+ reg: /^(rtcp-rsize)/
+ },
{ // any a= that we don't understand is kepts verbatim on media.invalid
push: 'invalid',
names: ["value"]
@@ -28875,7 +28924,7 @@ Object.keys(grammar).forEach(function (key) {
});
});
-},{}],92:[function(require,module,exports){
+},{}],91:[function(require,module,exports){
var parser = require('./parser');
var writer = require('./writer');
@@ -28885,7 +28934,7 @@ exports.parseFmtpConfig = parser.parseFmtpConfig;
exports.parsePayloads = parser.parsePayloads;
exports.parseRemoteCandidates = parser.parseRemoteCandidates;
-},{"./parser":93,"./writer":94}],93:[function(require,module,exports){
+},{"./parser":92,"./writer":93}],92:[function(require,module,exports){
var toIntIfInt = function (v) {
return String(Number(v)) === v ? Number(v) : v;
};
@@ -28980,7 +29029,7 @@ exports.parseRemoteCandidates = function (str) {
return candidates;
};
-},{"./grammar":91}],94:[function(require,module,exports){
+},{"./grammar":90}],93:[function(require,module,exports){
var grammar = require('./grammar');
// customized util.format - discards excess arguments and can void middle ones
@@ -29096,14 +29145,14 @@ module.exports = function (session, opts) {
return sdp.join('\r\n') + '\r\n';
};
-},{"./grammar":91}],95:[function(require,module,exports){
+},{"./grammar":90}],94:[function(require,module,exports){
var MediaStreamType = {
VIDEO_TYPE: "Video",
AUDIO_TYPE: "Audio"
};
module.exports = MediaStreamType;
-},{}],96:[function(require,module,exports){
+},{}],95:[function(require,module,exports){
var RTCBrowserType = {
RTC_BROWSER_CHROME: "rtc_browser.chrome",
@@ -29111,7 +29160,7 @@ var RTCBrowserType = {
};
module.exports = RTCBrowserType;
-},{}],97:[function(require,module,exports){
+},{}],96:[function(require,module,exports){
var RTCEvents = {
LASTN_CHANGED: "rtc.lastn_changed",
DOMINANTSPEAKER_CHANGED: "rtc.dominantspeaker_changed",
@@ -29124,7 +29173,7 @@ var RTCEvents = {
};
module.exports = RTCEvents;
-},{}],98:[function(require,module,exports){
+},{}],97:[function(require,module,exports){
var Resolutions = {
"1080": {
width: 1920,
@@ -29178,7 +29227,7 @@ var Resolutions = {
}
};
module.exports = Resolutions;
-},{}],99:[function(require,module,exports){
+},{}],98:[function(require,module,exports){
var StreamEventTypes = {
EVENT_TYPE_LOCAL_CREATED: "stream.local_created",
@@ -29194,14 +29243,14 @@ var StreamEventTypes = {
};
module.exports = StreamEventTypes;
-},{}],100:[function(require,module,exports){
+},{}],99:[function(require,module,exports){
var UIEvents = {
NICKNAME_CHANGED: "UI.nickname_changed",
SELECTED_ENDPOINT: "UI.selected_endpoint",
PINNED_ENDPOINT: "UI.pinned_endpoint"
};
module.exports = UIEvents;
-},{}],101:[function(require,module,exports){
+},{}],100:[function(require,module,exports){
var AuthenticationEvents = {
/**
* Event callback arguments:
@@ -29215,7 +29264,7 @@ var AuthenticationEvents = {
};
module.exports = AuthenticationEvents;
-},{}],102:[function(require,module,exports){
+},{}],101:[function(require,module,exports){
var CQEvents = {
LOCALSTATS_UPDATED: "cq.localstats_updated",
REMOTESTATS_UPDATED: "cq.remotestats_updated",
@@ -29223,7 +29272,7 @@ var CQEvents = {
};
module.exports = CQEvents;
-},{}],103:[function(require,module,exports){
+},{}],102:[function(require,module,exports){
var DesktopSharingEventTypes = {
INIT: "ds.init",
@@ -29233,14 +29282,14 @@ var DesktopSharingEventTypes = {
};
module.exports = DesktopSharingEventTypes;
-},{}],104:[function(require,module,exports){
+},{}],103:[function(require,module,exports){
var Events = {
DTMF_SUPPORT_CHANGED: "members.dtmf_support_changed"
};
module.exports = Events;
-},{}],105:[function(require,module,exports){
+},{}],104:[function(require,module,exports){
module.exports = {
getLanguages : function () {
var languages = [];
@@ -29256,7 +29305,7 @@ module.exports = {
DE: "de",
TR: "tr"
}
-},{}],106:[function(require,module,exports){
+},{}],105:[function(require,module,exports){
var XMPPEvents = {
CONNECTION_FAILED: "xmpp.connection.failed",
CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
@@ -29291,5 +29340,64 @@ var XMPPEvents = {
DEVICE_AVAILABLE: "xmpp.device_available"
};
module.exports = XMPPEvents;
-},{}]},{},[1])(1)
+},{}],106:[function(require,module,exports){
+/* jshint -W117 */
+/* application specific logic */
+
+var APP =
+{
+ init: function () {
+ this.UI = require("./modules/UI/UI");
+ this.API = require("./modules/API/API");
+ this.connectionquality = require("./modules/connectionquality/connectionquality");
+ this.statistics = require("./modules/statistics/statistics");
+ this.RTC = require("./modules/RTC/RTC");
+ this.simulcast = require("./modules/simulcast/simulcast");
+ this.desktopsharing = require("./modules/desktopsharing/desktopsharing");
+ this.xmpp = require("./modules/xmpp/xmpp");
+ this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");
+ this.translation = require("./modules/translation/translation");
+ this.settings = require("./modules/settings/Settings");
+ this.DTMF = require("./modules/DTMF/DTMF");
+ this.members = require("./modules/members/MemberList");
+ }
+};
+
+function init() {
+
+ APP.RTC.start();
+ APP.xmpp.start();
+ APP.statistics.start();
+ APP.connectionquality.init();
+
+ // Set default desktop sharing method
+ APP.desktopsharing.init();
+
+ APP.keyboardshortcut.init();
+ APP.members.start();
+}
+
+
+$(document).ready(function () {
+
+ APP.init();
+
+ APP.translation.init();
+
+ if(APP.API.isEnabled())
+ APP.API.init();
+
+ APP.UI.start(init);
+
+});
+
+$(window).bind('beforeunload', function () {
+ if(APP.API.isEnabled())
+ APP.API.dispose();
+});
+
+module.exports = APP;
+
+
+},{"./modules/API/API":1,"./modules/DTMF/DTMF":2,"./modules/RTC/RTC":6,"./modules/UI/UI":8,"./modules/connectionquality/connectionquality":35,"./modules/desktopsharing/desktopsharing":36,"./modules/keyboardshortcut/keyboardshortcut":37,"./modules/members/MemberList":38,"./modules/settings/Settings":39,"./modules/simulcast/simulcast":44,"./modules/statistics/statistics":47,"./modules/translation/translation":48,"./modules/xmpp/xmpp":62}]},{},[106])(106)
});
\ No newline at end of file