Преглед изворни кода

ensure that video element is visible before attaching stream with Temasys

dev1
isymchych пре 10 година
родитељ
комит
abcc2ab98b
3 измењених фајлова са 104 додато и 88 уклоњено
  1. 88
    76
      lib-jitsi-meet.js
  2. 12
    12
      lib-jitsi-meet.min.js
  3. 4
    0
      modules/RTC/RTCUtils.js

+ 88
- 76
lib-jitsi-meet.js Прегледај датотеку

@@ -1087,7 +1087,7 @@ function setupListeners(conference) {
1087 1087
 module.exports = JitsiConference;
1088 1088
 
1089 1089
 }).call(this,"/JitsiConference.js")
1090
-},{"./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":133,"./service/authentication/AuthenticationEvents":135,"./service/xmpp/XMPPEvents":139,"events":46,"jitsi-meet-logger":50}],2:[function(require,module,exports){
1090
+},{"./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":137,"./service/authentication/AuthenticationEvents":139,"./service/xmpp/XMPPEvents":143,"events":46,"jitsi-meet-logger":50}],2:[function(require,module,exports){
1091 1091
 /**
1092 1092
  * Enumeration with the errors for the conference.
1093 1093
  * @type {{string: string}}
@@ -1560,7 +1560,7 @@ window.Promise = window.Promise || require("es6-promise").Promise;
1560 1560
 
1561 1561
 module.exports = LibJitsiMeet;
1562 1562
 
1563
-},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./modules/util/ScriptUtil":27,"./service/RTC/Resolutions":134,"es6-promise":48,"jitsi-meet-logger":50}],8:[function(require,module,exports){
1563
+},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./modules/util/ScriptUtil":27,"./service/RTC/Resolutions":138,"es6-promise":48,"jitsi-meet-logger":50}],8:[function(require,module,exports){
1564 1564
 /* global Strophe */
1565 1565
 
1566 1566
 /**
@@ -2020,7 +2020,7 @@ DataChannels.prototype._some = function (callback, thisArg) {
2020 2020
 module.exports = DataChannels;
2021 2021
 
2022 2022
 }).call(this,"/modules/RTC/DataChannels.js")
2023
-},{"../../service/RTC/RTCEvents":133,"jitsi-meet-logger":50}],13:[function(require,module,exports){
2023
+},{"../../service/RTC/RTCEvents":137,"jitsi-meet-logger":50}],13:[function(require,module,exports){
2024 2024
 var JitsiTrack = require("./JitsiTrack");
2025 2025
 var RTCBrowserType = require("./RTCBrowserType");
2026 2026
 var JitsiTrackEvents = require('../../JitsiTrackEvents');
@@ -2812,7 +2812,7 @@ RTC.prototype.setAudioLevel = function (jid, audioLevel) {
2812 2812
 }
2813 2813
 module.exports = RTC;
2814 2814
 
2815
-},{"../../service/RTC/MediaStreamTypes":132,"../../service/RTC/RTCEvents.js":133,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":46}],17:[function(require,module,exports){
2815
+},{"../../service/RTC/MediaStreamTypes":136,"../../service/RTC/RTCEvents.js":137,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":46}],17:[function(require,module,exports){
2816 2816
 
2817 2817
 var currentBrowser;
2818 2818
 
@@ -3532,6 +3532,10 @@ var RTCUtils = {
3532 3532
                             return;
3533 3533
                         }
3534 3534
 
3535
+                        if (!elSel.is(':visible')) {
3536
+                            throw new Error('video element must be visible to attach the stream');
3537
+                        }
3538
+
3535 3539
                         attachMediaStream(elSel[0], stream);
3536 3540
                     };
3537 3541
                     self.getStreamID = function (stream) {
@@ -3805,7 +3809,7 @@ var RTCUtils = {
3805 3809
 module.exports = RTCUtils;
3806 3810
 
3807 3811
 }).call(this,"/modules/RTC/RTCUtils.js")
3808
-},{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":133,"../../service/RTC/Resolutions":134,"../xmpp/SDPUtil":34,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":46,"jitsi-meet-logger":50}],19:[function(require,module,exports){
3812
+},{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":137,"../../service/RTC/Resolutions":138,"../xmpp/SDPUtil":34,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":46,"jitsi-meet-logger":50}],19:[function(require,module,exports){
3809 3813
 (function (__filename){
3810 3814
 /* global chrome, $, alert */
3811 3815
 /* jshint -W003 */
@@ -4221,7 +4225,7 @@ function initFirefoxExtensionDetection(options) {
4221 4225
 module.exports = ScreenObtainer;
4222 4226
 
4223 4227
 }).call(this,"/modules/RTC/ScreenObtainer.js")
4224
-},{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":136,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":50}],20:[function(require,module,exports){
4228
+},{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":140,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":50}],20:[function(require,module,exports){
4225 4229
 (function (__filename){
4226 4230
 /*! adapterjs - v0.12.3 - 2015-11-16 */
4227 4231
 var console = require("jitsi-meet-logger").getLogger(__filename);
@@ -5755,7 +5759,7 @@ CallStats.sendAddIceCandidateFailed = _try_catch(function (e, pc, cs) {
5755 5759
 module.exports = CallStats;
5756 5760
 
5757 5761
 }).call(this,"/modules/statistics/CallStats.js")
5758
-},{"jitsi-meet-logger":50,"jssha":51,"socket.io-client":82}],23:[function(require,module,exports){
5762
+},{"jitsi-meet-logger":50,"jssha":51,"socket.io-client":86}],23:[function(require,module,exports){
5759 5763
 /* global config */
5760 5764
 /**
5761 5765
  * Provides statistics for the local stream.
@@ -6612,7 +6616,7 @@ StatsCollector.prototype.processAudioLevelReport = function () {
6612 6616
 };
6613 6617
 
6614 6618
 }).call(this,"/modules/statistics/RTPStatsCollector.js")
6615
-},{"../../service/statistics/Events":137,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":50}],25:[function(require,module,exports){
6619
+},{"../../service/statistics/Events":141,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":50}],25:[function(require,module,exports){
6616 6620
 /* global require, APP */
6617 6621
 var LocalStats = require("./LocalStatsCollector.js");
6618 6622
 var RTPStats = require("./RTPStatsCollector.js");
@@ -6892,7 +6896,7 @@ Statistics.LOCAL_JID = require("../../service/statistics/constants").LOCAL_JID;
6892 6896
 
6893 6897
 module.exports = Statistics;
6894 6898
 
6895
-},{"../../service/statistics/Events":137,"../../service/statistics/constants":138,"../util/ScriptUtil":27,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":46}],26:[function(require,module,exports){
6899
+},{"../../service/statistics/Events":141,"../../service/statistics/constants":142,"../util/ScriptUtil":27,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":46}],26:[function(require,module,exports){
6896 6900
 /**
6897 6901
 /**
6898 6902
  * @const
@@ -8256,7 +8260,7 @@ ChatRoom.prototype.onMute = function (iq) {
8256 8260
 module.exports = ChatRoom;
8257 8261
 
8258 8262
 }).call(this,"/modules/xmpp/ChatRoom.js")
8259
-},{"../../service/xmpp/XMPPEvents":139,"./moderator":36,"./recording":37,"events":46,"jitsi-meet-logger":50}],30:[function(require,module,exports){
8263
+},{"../../service/xmpp/XMPPEvents":143,"./moderator":36,"./recording":37,"events":46,"jitsi-meet-logger":50}],30:[function(require,module,exports){
8260 8264
 (function (__filename){
8261 8265
 /*
8262 8266
  * JingleSession provides an API to manage a single Jingle session. We will
@@ -10055,7 +10059,7 @@ JingleSessionPC.prototype.getIceConnectionState = function () {
10055 10059
 module.exports = JingleSessionPC;
10056 10060
 
10057 10061
 }).call(this,"/modules/xmpp/JingleSessionPC.js")
10058
-},{"../../service/xmpp/XMPPEvents":139,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":30,"./SDP":32,"./SDPDiffer":33,"./SDPUtil":34,"./TraceablePeerConnection":35,"async":45,"jitsi-meet-logger":50,"sdp-transform":79}],32:[function(require,module,exports){
10062
+},{"../../service/xmpp/XMPPEvents":143,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":30,"./SDP":32,"./SDPDiffer":33,"./SDPUtil":34,"./TraceablePeerConnection":35,"async":45,"jitsi-meet-logger":50,"sdp-transform":83}],32:[function(require,module,exports){
10059 10063
 (function (__filename){
10060 10064
 /* jshint -W117 */
10061 10065
 
@@ -11750,7 +11754,7 @@ TraceablePeerConnection.prototype.getStats = function(callback, errback) {
11750 11754
 module.exports = TraceablePeerConnection;
11751 11755
 
11752 11756
 }).call(this,"/modules/xmpp/TraceablePeerConnection.js")
11753
-},{"../../service/xmpp/XMPPEvents":139,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":50,"sdp-interop":69,"sdp-simulcast":76,"sdp-transform":79}],36:[function(require,module,exports){
11757
+},{"../../service/xmpp/XMPPEvents":143,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":50,"sdp-interop":69,"sdp-simulcast":76,"sdp-transform":83}],36:[function(require,module,exports){
11754 11758
 (function (__filename){
11755 11759
 /* global $, $iq, Promise, Strophe */
11756 11760
 
@@ -12206,7 +12210,7 @@ Moderator.prototype.logout =  function (callback) {
12206 12210
 module.exports = Moderator;
12207 12211
 
12208 12212
 }).call(this,"/modules/xmpp/moderator.js")
12209
-},{"../../service/authentication/AuthenticationEvents":135,"../../service/xmpp/XMPPEvents":139,"jitsi-meet-logger":50}],37:[function(require,module,exports){
12213
+},{"../../service/authentication/AuthenticationEvents":139,"../../service/xmpp/XMPPEvents":143,"jitsi-meet-logger":50}],37:[function(require,module,exports){
12210 12214
 (function (__filename){
12211 12215
 /* global $, $iq, config, connection, focusMucJid, messageHandler,
12212 12216
    Toolbar, Util, Promise */
@@ -12433,7 +12437,7 @@ Recording.prototype.getURL = function () {
12433 12437
 module.exports = Recording;
12434 12438
 
12435 12439
 }).call(this,"/modules/xmpp/recording.js")
12436
-},{"../../service/xmpp/XMPPEvents":139,"jitsi-meet-logger":50}],38:[function(require,module,exports){
12440
+},{"../../service/xmpp/XMPPEvents":143,"jitsi-meet-logger":50}],38:[function(require,module,exports){
12437 12441
 (function (__filename){
12438 12442
 /* jshint -W117 */
12439 12443
 /* a simple MUC connection plugin
@@ -12843,7 +12847,7 @@ module.exports = function(XMPP, eventEmitter) {
12843 12847
 
12844 12848
 
12845 12849
 }).call(this,"/modules/xmpp/strophe.jingle.js")
12846
-},{"../../service/xmpp/XMPPEvents":139,"../RTC/RTCBrowserType":17,"./JingleSessionPC":31,"jitsi-meet-logger":50}],40:[function(require,module,exports){
12850
+},{"../../service/xmpp/XMPPEvents":143,"../RTC/RTCBrowserType":17,"./JingleSessionPC":31,"jitsi-meet-logger":50}],40:[function(require,module,exports){
12847 12851
 /* global Strophe */
12848 12852
 module.exports = function () {
12849 12853
 
@@ -12991,7 +12995,7 @@ module.exports = function (XMPP, eventEmitter) {
12991 12995
 };
12992 12996
 
12993 12997
 }).call(this,"/modules/xmpp/strophe.ping.js")
12994
-},{"../../service/xmpp/XMPPEvents":139,"jitsi-meet-logger":50}],42:[function(require,module,exports){
12998
+},{"../../service/xmpp/XMPPEvents":143,"jitsi-meet-logger":50}],42:[function(require,module,exports){
12995 12999
 (function (__filename){
12996 13000
 /* jshint -W117 */
12997 13001
 var logger = require("jitsi-meet-logger").getLogger(__filename);
@@ -13501,7 +13505,7 @@ XMPP.prototype.disconnect = function (ev) {
13501 13505
 module.exports = XMPP;
13502 13506
 
13503 13507
 }).call(this,"/modules/xmpp/xmpp.js")
13504
-},{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":133,"../../service/xmpp/XMPPEvents":139,"../RTC/RTC":16,"./strophe.emuc":38,"./strophe.jingle":39,"./strophe.logger":40,"./strophe.ping":41,"./strophe.rayo":42,"./strophe.util":43,"events":46,"jitsi-meet-logger":50,"pako":52}],45:[function(require,module,exports){
13508
+},{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":137,"../../service/xmpp/XMPPEvents":143,"../RTC/RTC":16,"./strophe.emuc":38,"./strophe.jingle":39,"./strophe.logger":40,"./strophe.ping":41,"./strophe.rayo":42,"./strophe.util":43,"events":46,"jitsi-meet-logger":50,"pako":52}],45:[function(require,module,exports){
13505 13509
 (function (process){
13506 13510
 /*!
13507 13511
  * async
@@ -24566,10 +24570,18 @@ arguments[4][74][0].apply(exports,arguments)
24566 24570
 },{"./grammar":78,"dup":74}],81:[function(require,module,exports){
24567 24571
 arguments[4][75][0].apply(exports,arguments)
24568 24572
 },{"./grammar":78,"dup":75}],82:[function(require,module,exports){
24573
+arguments[4][72][0].apply(exports,arguments)
24574
+},{"dup":72}],83:[function(require,module,exports){
24575
+arguments[4][73][0].apply(exports,arguments)
24576
+},{"./parser":84,"./writer":85,"dup":73}],84:[function(require,module,exports){
24577
+arguments[4][74][0].apply(exports,arguments)
24578
+},{"./grammar":82,"dup":74}],85:[function(require,module,exports){
24579
+arguments[4][75][0].apply(exports,arguments)
24580
+},{"./grammar":82,"dup":75}],86:[function(require,module,exports){
24569 24581
 
24570 24582
 module.exports = require('./lib/');
24571 24583
 
24572
-},{"./lib/":83}],83:[function(require,module,exports){
24584
+},{"./lib/":87}],87:[function(require,module,exports){
24573 24585
 
24574 24586
 /**
24575 24587
  * Module dependencies.
@@ -24658,7 +24670,7 @@ exports.connect = lookup;
24658 24670
 exports.Manager = require('./manager');
24659 24671
 exports.Socket = require('./socket');
24660 24672
 
24661
-},{"./manager":84,"./socket":86,"./url":87,"debug":91,"socket.io-parser":127}],84:[function(require,module,exports){
24673
+},{"./manager":88,"./socket":90,"./url":91,"debug":95,"socket.io-parser":131}],88:[function(require,module,exports){
24662 24674
 
24663 24675
 /**
24664 24676
  * Module dependencies.
@@ -25163,7 +25175,7 @@ Manager.prototype.onreconnect = function(){
25163 25175
   this.emitAll('reconnect', attempt);
25164 25176
 };
25165 25177
 
25166
-},{"./on":85,"./socket":86,"./url":87,"backo2":88,"component-bind":89,"component-emitter":90,"debug":91,"engine.io-client":92,"indexof":123,"object-component":124,"socket.io-parser":127}],85:[function(require,module,exports){
25178
+},{"./on":89,"./socket":90,"./url":91,"backo2":92,"component-bind":93,"component-emitter":94,"debug":95,"engine.io-client":96,"indexof":127,"object-component":128,"socket.io-parser":131}],89:[function(require,module,exports){
25167 25179
 
25168 25180
 /**
25169 25181
  * Module exports.
@@ -25189,7 +25201,7 @@ function on(obj, ev, fn) {
25189 25201
   };
25190 25202
 }
25191 25203
 
25192
-},{}],86:[function(require,module,exports){
25204
+},{}],90:[function(require,module,exports){
25193 25205
 
25194 25206
 /**
25195 25207
  * Module dependencies.
@@ -25576,7 +25588,7 @@ Socket.prototype.disconnect = function(){
25576 25588
   return this;
25577 25589
 };
25578 25590
 
25579
-},{"./on":85,"component-bind":89,"component-emitter":90,"debug":91,"has-binary":121,"socket.io-parser":127,"to-array":131}],87:[function(require,module,exports){
25591
+},{"./on":89,"component-bind":93,"component-emitter":94,"debug":95,"has-binary":125,"socket.io-parser":131,"to-array":135}],91:[function(require,module,exports){
25580 25592
 (function (global){
25581 25593
 
25582 25594
 /**
@@ -25653,7 +25665,7 @@ function url(uri, loc){
25653 25665
 }
25654 25666
 
25655 25667
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
25656
-},{"debug":91,"parseuri":125}],88:[function(require,module,exports){
25668
+},{"debug":95,"parseuri":129}],92:[function(require,module,exports){
25657 25669
 
25658 25670
 /**
25659 25671
  * Expose `Backoff`.
@@ -25740,7 +25752,7 @@ Backoff.prototype.setJitter = function(jitter){
25740 25752
 };
25741 25753
 
25742 25754
 
25743
-},{}],89:[function(require,module,exports){
25755
+},{}],93:[function(require,module,exports){
25744 25756
 /**
25745 25757
  * Slice reference.
25746 25758
  */
@@ -25765,7 +25777,7 @@ module.exports = function(obj, fn){
25765 25777
   }
25766 25778
 };
25767 25779
 
25768
-},{}],90:[function(require,module,exports){
25780
+},{}],94:[function(require,module,exports){
25769 25781
 
25770 25782
 /**
25771 25783
  * Expose `Emitter`.
@@ -25931,7 +25943,7 @@ Emitter.prototype.hasListeners = function(event){
25931 25943
   return !! this.listeners(event).length;
25932 25944
 };
25933 25945
 
25934
-},{}],91:[function(require,module,exports){
25946
+},{}],95:[function(require,module,exports){
25935 25947
 
25936 25948
 /**
25937 25949
  * Expose `debug()` as the module.
@@ -26070,11 +26082,11 @@ try {
26070 26082
   if (window.localStorage) debug.enable(localStorage.debug);
26071 26083
 } catch(e){}
26072 26084
 
26073
-},{}],92:[function(require,module,exports){
26085
+},{}],96:[function(require,module,exports){
26074 26086
 
26075 26087
 module.exports =  require('./lib/');
26076 26088
 
26077
-},{"./lib/":93}],93:[function(require,module,exports){
26089
+},{"./lib/":97}],97:[function(require,module,exports){
26078 26090
 
26079 26091
 module.exports = require('./socket');
26080 26092
 
@@ -26086,7 +26098,7 @@ module.exports = require('./socket');
26086 26098
  */
26087 26099
 module.exports.parser = require('engine.io-parser');
26088 26100
 
26089
-},{"./socket":94,"engine.io-parser":106}],94:[function(require,module,exports){
26101
+},{"./socket":98,"engine.io-parser":110}],98:[function(require,module,exports){
26090 26102
 (function (global){
26091 26103
 /**
26092 26104
  * Module dependencies.
@@ -26795,7 +26807,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
26795 26807
 };
26796 26808
 
26797 26809
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
26798
-},{"./transport":95,"./transports":96,"component-emitter":90,"debug":103,"engine.io-parser":106,"indexof":123,"parsejson":117,"parseqs":118,"parseuri":119}],95:[function(require,module,exports){
26810
+},{"./transport":99,"./transports":100,"component-emitter":94,"debug":107,"engine.io-parser":110,"indexof":127,"parsejson":121,"parseqs":122,"parseuri":123}],99:[function(require,module,exports){
26799 26811
 /**
26800 26812
  * Module dependencies.
26801 26813
  */
@@ -26956,7 +26968,7 @@ Transport.prototype.onClose = function () {
26956 26968
   this.emit('close');
26957 26969
 };
26958 26970
 
26959
-},{"component-emitter":90,"engine.io-parser":106}],96:[function(require,module,exports){
26971
+},{"component-emitter":94,"engine.io-parser":110}],100:[function(require,module,exports){
26960 26972
 (function (global){
26961 26973
 /**
26962 26974
  * Module dependencies
@@ -27013,7 +27025,7 @@ function polling(opts){
27013 27025
 }
27014 27026
 
27015 27027
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27016
-},{"./polling-jsonp":97,"./polling-xhr":98,"./websocket":100,"xmlhttprequest":101}],97:[function(require,module,exports){
27028
+},{"./polling-jsonp":101,"./polling-xhr":102,"./websocket":104,"xmlhttprequest":105}],101:[function(require,module,exports){
27017 27029
 (function (global){
27018 27030
 
27019 27031
 /**
@@ -27250,7 +27262,7 @@ JSONPPolling.prototype.doWrite = function (data, fn) {
27250 27262
 };
27251 27263
 
27252 27264
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27253
-},{"./polling":99,"component-inherit":102}],98:[function(require,module,exports){
27265
+},{"./polling":103,"component-inherit":106}],102:[function(require,module,exports){
27254 27266
 (function (global){
27255 27267
 /**
27256 27268
  * Module requirements.
@@ -27638,7 +27650,7 @@ function unloadHandler() {
27638 27650
 }
27639 27651
 
27640 27652
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27641
-},{"./polling":99,"component-emitter":90,"component-inherit":102,"debug":103,"xmlhttprequest":101}],99:[function(require,module,exports){
27653
+},{"./polling":103,"component-emitter":94,"component-inherit":106,"debug":107,"xmlhttprequest":105}],103:[function(require,module,exports){
27642 27654
 /**
27643 27655
  * Module dependencies.
27644 27656
  */
@@ -27885,7 +27897,7 @@ Polling.prototype.uri = function(){
27885 27897
   return schema + '://' + this.hostname + port + this.path + query;
27886 27898
 };
27887 27899
 
27888
-},{"../transport":95,"component-inherit":102,"debug":103,"engine.io-parser":106,"parseqs":118,"xmlhttprequest":101}],100:[function(require,module,exports){
27900
+},{"../transport":99,"component-inherit":106,"debug":107,"engine.io-parser":110,"parseqs":122,"xmlhttprequest":105}],104:[function(require,module,exports){
27889 27901
 /**
27890 27902
  * Module dependencies.
27891 27903
  */
@@ -28125,7 +28137,7 @@ WS.prototype.check = function(){
28125 28137
   return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
28126 28138
 };
28127 28139
 
28128
-},{"../transport":95,"component-inherit":102,"debug":103,"engine.io-parser":106,"parseqs":118,"ws":120}],101:[function(require,module,exports){
28140
+},{"../transport":99,"component-inherit":106,"debug":107,"engine.io-parser":110,"parseqs":122,"ws":124}],105:[function(require,module,exports){
28129 28141
 // browser shim for xmlhttprequest module
28130 28142
 var hasCORS = require('has-cors');
28131 28143
 
@@ -28163,7 +28175,7 @@ module.exports = function(opts) {
28163 28175
   }
28164 28176
 }
28165 28177
 
28166
-},{"has-cors":115}],102:[function(require,module,exports){
28178
+},{"has-cors":119}],106:[function(require,module,exports){
28167 28179
 
28168 28180
 module.exports = function(a, b){
28169 28181
   var fn = function(){};
@@ -28171,7 +28183,7 @@ module.exports = function(a, b){
28171 28183
   a.prototype = new fn;
28172 28184
   a.prototype.constructor = a;
28173 28185
 };
28174
-},{}],103:[function(require,module,exports){
28186
+},{}],107:[function(require,module,exports){
28175 28187
 
28176 28188
 /**
28177 28189
  * This is the web browser implementation of `debug()`.
@@ -28320,7 +28332,7 @@ function load() {
28320 28332
 
28321 28333
 exports.enable(load());
28322 28334
 
28323
-},{"./debug":104}],104:[function(require,module,exports){
28335
+},{"./debug":108}],108:[function(require,module,exports){
28324 28336
 
28325 28337
 /**
28326 28338
  * This is the common logic for both the Node.js and web browser
@@ -28519,7 +28531,7 @@ function coerce(val) {
28519 28531
   return val;
28520 28532
 }
28521 28533
 
28522
-},{"ms":105}],105:[function(require,module,exports){
28534
+},{"ms":109}],109:[function(require,module,exports){
28523 28535
 /**
28524 28536
  * Helpers.
28525 28537
  */
@@ -28632,7 +28644,7 @@ function plural(ms, n, name) {
28632 28644
   return Math.ceil(ms / n) + ' ' + name + 's';
28633 28645
 }
28634 28646
 
28635
-},{}],106:[function(require,module,exports){
28647
+},{}],110:[function(require,module,exports){
28636 28648
 (function (global){
28637 28649
 /**
28638 28650
  * Module dependencies.
@@ -29230,7 +29242,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
29230 29242
 };
29231 29243
 
29232 29244
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29233
-},{"./keys":107,"after":108,"arraybuffer.slice":109,"base64-arraybuffer":110,"blob":111,"has-binary":112,"utf8":114}],107:[function(require,module,exports){
29245
+},{"./keys":111,"after":112,"arraybuffer.slice":113,"base64-arraybuffer":114,"blob":115,"has-binary":116,"utf8":118}],111:[function(require,module,exports){
29234 29246
 
29235 29247
 /**
29236 29248
  * Gets the keys for an object.
@@ -29251,7 +29263,7 @@ module.exports = Object.keys || function keys (obj){
29251 29263
   return arr;
29252 29264
 };
29253 29265
 
29254
-},{}],108:[function(require,module,exports){
29266
+},{}],112:[function(require,module,exports){
29255 29267
 module.exports = after
29256 29268
 
29257 29269
 function after(count, callback, err_cb) {
@@ -29281,7 +29293,7 @@ function after(count, callback, err_cb) {
29281 29293
 
29282 29294
 function noop() {}
29283 29295
 
29284
-},{}],109:[function(require,module,exports){
29296
+},{}],113:[function(require,module,exports){
29285 29297
 /**
29286 29298
  * An abstraction for slicing an arraybuffer even when
29287 29299
  * ArrayBuffer.prototype.slice is not supported
@@ -29312,7 +29324,7 @@ module.exports = function(arraybuffer, start, end) {
29312 29324
   return result.buffer;
29313 29325
 };
29314 29326
 
29315
-},{}],110:[function(require,module,exports){
29327
+},{}],114:[function(require,module,exports){
29316 29328
 /*
29317 29329
  * base64-arraybuffer
29318 29330
  * https://github.com/niklasvh/base64-arraybuffer
@@ -29373,7 +29385,7 @@ module.exports = function(arraybuffer, start, end) {
29373 29385
   };
29374 29386
 })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
29375 29387
 
29376
-},{}],111:[function(require,module,exports){
29388
+},{}],115:[function(require,module,exports){
29377 29389
 (function (global){
29378 29390
 /**
29379 29391
  * Create a blob builder even when vendor prefixes exist
@@ -29426,7 +29438,7 @@ module.exports = (function() {
29426 29438
 })();
29427 29439
 
29428 29440
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29429
-},{}],112:[function(require,module,exports){
29441
+},{}],116:[function(require,module,exports){
29430 29442
 (function (global){
29431 29443
 
29432 29444
 /*
@@ -29488,12 +29500,12 @@ function hasBinary(data) {
29488 29500
 }
29489 29501
 
29490 29502
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29491
-},{"isarray":113}],113:[function(require,module,exports){
29503
+},{"isarray":117}],117:[function(require,module,exports){
29492 29504
 module.exports = Array.isArray || function (arr) {
29493 29505
   return Object.prototype.toString.call(arr) == '[object Array]';
29494 29506
 };
29495 29507
 
29496
-},{}],114:[function(require,module,exports){
29508
+},{}],118:[function(require,module,exports){
29497 29509
 (function (global){
29498 29510
 /*! http://mths.be/utf8js v2.0.0 by @mathias */
29499 29511
 ;(function(root) {
@@ -29736,7 +29748,7 @@ module.exports = Array.isArray || function (arr) {
29736 29748
 }(this));
29737 29749
 
29738 29750
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29739
-},{}],115:[function(require,module,exports){
29751
+},{}],119:[function(require,module,exports){
29740 29752
 
29741 29753
 /**
29742 29754
  * Module dependencies.
@@ -29761,7 +29773,7 @@ try {
29761 29773
   module.exports = false;
29762 29774
 }
29763 29775
 
29764
-},{"global":116}],116:[function(require,module,exports){
29776
+},{"global":120}],120:[function(require,module,exports){
29765 29777
 
29766 29778
 /**
29767 29779
  * Returns `this`. Execute this without a "context" (i.e. without it being
@@ -29771,7 +29783,7 @@ try {
29771 29783
 
29772 29784
 module.exports = (function () { return this; })();
29773 29785
 
29774
-},{}],117:[function(require,module,exports){
29786
+},{}],121:[function(require,module,exports){
29775 29787
 (function (global){
29776 29788
 /**
29777 29789
  * JSON parse.
@@ -29806,7 +29818,7 @@ module.exports = function parsejson(data) {
29806 29818
   }
29807 29819
 };
29808 29820
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29809
-},{}],118:[function(require,module,exports){
29821
+},{}],122:[function(require,module,exports){
29810 29822
 /**
29811 29823
  * Compiles a querystring
29812 29824
  * Returns string representation of the object
@@ -29845,7 +29857,7 @@ exports.decode = function(qs){
29845 29857
   return qry;
29846 29858
 };
29847 29859
 
29848
-},{}],119:[function(require,module,exports){
29860
+},{}],123:[function(require,module,exports){
29849 29861
 /**
29850 29862
  * Parses an URI
29851 29863
  *
@@ -29886,7 +29898,7 @@ module.exports = function parseuri(str) {
29886 29898
     return uri;
29887 29899
 };
29888 29900
 
29889
-},{}],120:[function(require,module,exports){
29901
+},{}],124:[function(require,module,exports){
29890 29902
 
29891 29903
 /**
29892 29904
  * Module dependencies.
@@ -29931,7 +29943,7 @@ function ws(uri, protocols, opts) {
29931 29943
 
29932 29944
 if (WebSocket) ws.prototype = WebSocket.prototype;
29933 29945
 
29934
-},{}],121:[function(require,module,exports){
29946
+},{}],125:[function(require,module,exports){
29935 29947
 (function (global){
29936 29948
 
29937 29949
 /*
@@ -29993,9 +30005,9 @@ function hasBinary(data) {
29993 30005
 }
29994 30006
 
29995 30007
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29996
-},{"isarray":122}],122:[function(require,module,exports){
29997
-arguments[4][113][0].apply(exports,arguments)
29998
-},{"dup":113}],123:[function(require,module,exports){
30008
+},{"isarray":126}],126:[function(require,module,exports){
30009
+arguments[4][117][0].apply(exports,arguments)
30010
+},{"dup":117}],127:[function(require,module,exports){
29999 30011
 
30000 30012
 var indexOf = [].indexOf;
30001 30013
 
@@ -30006,7 +30018,7 @@ module.exports = function(arr, obj){
30006 30018
   }
30007 30019
   return -1;
30008 30020
 };
30009
-},{}],124:[function(require,module,exports){
30021
+},{}],128:[function(require,module,exports){
30010 30022
 
30011 30023
 /**
30012 30024
  * HOP ref.
@@ -30091,7 +30103,7 @@ exports.length = function(obj){
30091 30103
 exports.isEmpty = function(obj){
30092 30104
   return 0 == exports.length(obj);
30093 30105
 };
30094
-},{}],125:[function(require,module,exports){
30106
+},{}],129:[function(require,module,exports){
30095 30107
 /**
30096 30108
  * Parses an URI
30097 30109
  *
@@ -30118,7 +30130,7 @@ module.exports = function parseuri(str) {
30118 30130
   return uri;
30119 30131
 };
30120 30132
 
30121
-},{}],126:[function(require,module,exports){
30133
+},{}],130:[function(require,module,exports){
30122 30134
 (function (global){
30123 30135
 /*global Blob,File*/
30124 30136
 
@@ -30263,7 +30275,7 @@ exports.removeBlobs = function(data, callback) {
30263 30275
 };
30264 30276
 
30265 30277
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
30266
-},{"./is-buffer":128,"isarray":129}],127:[function(require,module,exports){
30278
+},{"./is-buffer":132,"isarray":133}],131:[function(require,module,exports){
30267 30279
 
30268 30280
 /**
30269 30281
  * Module dependencies.
@@ -30665,7 +30677,7 @@ function error(data){
30665 30677
   };
30666 30678
 }
30667 30679
 
30668
-},{"./binary":126,"./is-buffer":128,"component-emitter":90,"debug":91,"isarray":129,"json3":130}],128:[function(require,module,exports){
30680
+},{"./binary":130,"./is-buffer":132,"component-emitter":94,"debug":95,"isarray":133,"json3":134}],132:[function(require,module,exports){
30669 30681
 (function (global){
30670 30682
 
30671 30683
 module.exports = isBuf;
@@ -30682,9 +30694,9 @@ function isBuf(obj) {
30682 30694
 }
30683 30695
 
30684 30696
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
30685
-},{}],129:[function(require,module,exports){
30686
-arguments[4][113][0].apply(exports,arguments)
30687
-},{"dup":113}],130:[function(require,module,exports){
30697
+},{}],133:[function(require,module,exports){
30698
+arguments[4][117][0].apply(exports,arguments)
30699
+},{"dup":117}],134:[function(require,module,exports){
30688 30700
 /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
30689 30701
 ;(function (window) {
30690 30702
   // Convenience aliases.
@@ -31547,7 +31559,7 @@ arguments[4][113][0].apply(exports,arguments)
31547 31559
   }
31548 31560
 }(this));
31549 31561
 
31550
-},{}],131:[function(require,module,exports){
31562
+},{}],135:[function(require,module,exports){
31551 31563
 module.exports = toArray
31552 31564
 
31553 31565
 function toArray(list, index) {
@@ -31562,14 +31574,14 @@ function toArray(list, index) {
31562 31574
     return array
31563 31575
 }
31564 31576
 
31565
-},{}],132:[function(require,module,exports){
31577
+},{}],136:[function(require,module,exports){
31566 31578
 var MediaStreamType = {
31567 31579
     VIDEO_TYPE: "Video",
31568 31580
 
31569 31581
     AUDIO_TYPE: "Audio"
31570 31582
 };
31571 31583
 module.exports = MediaStreamType;
31572
-},{}],133:[function(require,module,exports){
31584
+},{}],137:[function(require,module,exports){
31573 31585
 var RTCEvents = {
31574 31586
     RTC_READY: "rtc.ready",
31575 31587
     DATA_CHANNEL_OPEN: "rtc.data_channel_open",
@@ -31581,7 +31593,7 @@ var RTCEvents = {
31581 31593
 };
31582 31594
 
31583 31595
 module.exports = RTCEvents;
31584
-},{}],134:[function(require,module,exports){
31596
+},{}],138:[function(require,module,exports){
31585 31597
 var Resolutions = {
31586 31598
     "1080": {
31587 31599
         width: 1920,
@@ -31635,7 +31647,7 @@ var Resolutions = {
31635 31647
     }
31636 31648
 };
31637 31649
 module.exports = Resolutions;
31638
-},{}],135:[function(require,module,exports){
31650
+},{}],139:[function(require,module,exports){
31639 31651
 var AuthenticationEvents = {
31640 31652
     /**
31641 31653
      * Event callback arguments:
@@ -31649,7 +31661,7 @@ var AuthenticationEvents = {
31649 31661
 };
31650 31662
 module.exports = AuthenticationEvents;
31651 31663
 
31652
-},{}],136:[function(require,module,exports){
31664
+},{}],140:[function(require,module,exports){
31653 31665
 var DesktopSharingEventTypes = {
31654 31666
     /**
31655 31667
      * An event which indicates that the jidesha extension for Firefox is
@@ -31660,7 +31672,7 @@ var DesktopSharingEventTypes = {
31660 31672
 
31661 31673
 module.exports = DesktopSharingEventTypes;
31662 31674
 
31663
-},{}],137:[function(require,module,exports){
31675
+},{}],141:[function(require,module,exports){
31664 31676
 module.exports = {
31665 31677
     /**
31666 31678
      * An event carrying connection statistics.
@@ -31676,12 +31688,12 @@ module.exports = {
31676 31688
     STOP: "statistics.stop"
31677 31689
 };
31678 31690
 
31679
-},{}],138:[function(require,module,exports){
31691
+},{}],142:[function(require,module,exports){
31680 31692
 var Constants = {
31681 31693
     LOCAL_JID: 'local'
31682 31694
 };
31683 31695
 module.exports = Constants;
31684
-},{}],139:[function(require,module,exports){
31696
+},{}],143:[function(require,module,exports){
31685 31697
 var XMPPEvents = {
31686 31698
     // Designates an event indicating that the connection to the XMPP server
31687 31699
     // failed.

+ 12
- 12
lib-jitsi-meet.min.js
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 4
- 0
modules/RTC/RTCUtils.js Прегледај датотеку

@@ -543,6 +543,10 @@ var RTCUtils = {
543 543
                             return;
544 544
                         }
545 545
 
546
+                        if (!elSel.is(':visible')) {
547
+                            throw new Error('video element must be visible to attach the stream');
548
+                        }
549
+
546 550
                         attachMediaStream(elSel[0], stream);
547 551
                     };
548 552
                     self.getStreamID = function (stream) {

Loading…
Откажи
Сачувај