浏览代码

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
 module.exports = JitsiConference;
1087
 module.exports = JitsiConference;
1088
 
1088
 
1089
 }).call(this,"/JitsiConference.js")
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
  * Enumeration with the errors for the conference.
1092
  * Enumeration with the errors for the conference.
1093
  * @type {{string: string}}
1093
  * @type {{string: string}}
1560
 
1560
 
1561
 module.exports = LibJitsiMeet;
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
 /* global Strophe */
1564
 /* global Strophe */
1565
 
1565
 
1566
 /**
1566
 /**
2020
 module.exports = DataChannels;
2020
 module.exports = DataChannels;
2021
 
2021
 
2022
 }).call(this,"/modules/RTC/DataChannels.js")
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
 var JitsiTrack = require("./JitsiTrack");
2024
 var JitsiTrack = require("./JitsiTrack");
2025
 var RTCBrowserType = require("./RTCBrowserType");
2025
 var RTCBrowserType = require("./RTCBrowserType");
2026
 var JitsiTrackEvents = require('../../JitsiTrackEvents');
2026
 var JitsiTrackEvents = require('../../JitsiTrackEvents');
2812
 }
2812
 }
2813
 module.exports = RTC;
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
 var currentBrowser;
2817
 var currentBrowser;
2818
 
2818
 
3532
                             return;
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
                         attachMediaStream(elSel[0], stream);
3539
                         attachMediaStream(elSel[0], stream);
3536
                     };
3540
                     };
3537
                     self.getStreamID = function (stream) {
3541
                     self.getStreamID = function (stream) {
3805
 module.exports = RTCUtils;
3809
 module.exports = RTCUtils;
3806
 
3810
 
3807
 }).call(this,"/modules/RTC/RTCUtils.js")
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
 (function (__filename){
3813
 (function (__filename){
3810
 /* global chrome, $, alert */
3814
 /* global chrome, $, alert */
3811
 /* jshint -W003 */
3815
 /* jshint -W003 */
4221
 module.exports = ScreenObtainer;
4225
 module.exports = ScreenObtainer;
4222
 
4226
 
4223
 }).call(this,"/modules/RTC/ScreenObtainer.js")
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
 (function (__filename){
4229
 (function (__filename){
4226
 /*! adapterjs - v0.12.3 - 2015-11-16 */
4230
 /*! adapterjs - v0.12.3 - 2015-11-16 */
4227
 var console = require("jitsi-meet-logger").getLogger(__filename);
4231
 var console = require("jitsi-meet-logger").getLogger(__filename);
5755
 module.exports = CallStats;
5759
 module.exports = CallStats;
5756
 
5760
 
5757
 }).call(this,"/modules/statistics/CallStats.js")
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
 /* global config */
5763
 /* global config */
5760
 /**
5764
 /**
5761
  * Provides statistics for the local stream.
5765
  * Provides statistics for the local stream.
6612
 };
6616
 };
6613
 
6617
 
6614
 }).call(this,"/modules/statistics/RTPStatsCollector.js")
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
 /* global require, APP */
6620
 /* global require, APP */
6617
 var LocalStats = require("./LocalStatsCollector.js");
6621
 var LocalStats = require("./LocalStatsCollector.js");
6618
 var RTPStats = require("./RTPStatsCollector.js");
6622
 var RTPStats = require("./RTPStatsCollector.js");
6892
 
6896
 
6893
 module.exports = Statistics;
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
  * @const
6902
  * @const
8256
 module.exports = ChatRoom;
8260
 module.exports = ChatRoom;
8257
 
8261
 
8258
 }).call(this,"/modules/xmpp/ChatRoom.js")
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
 (function (__filename){
8264
 (function (__filename){
8261
 /*
8265
 /*
8262
  * JingleSession provides an API to manage a single Jingle session. We will
8266
  * JingleSession provides an API to manage a single Jingle session. We will
10055
 module.exports = JingleSessionPC;
10059
 module.exports = JingleSessionPC;
10056
 
10060
 
10057
 }).call(this,"/modules/xmpp/JingleSessionPC.js")
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
 (function (__filename){
10063
 (function (__filename){
10060
 /* jshint -W117 */
10064
 /* jshint -W117 */
10061
 
10065
 
11750
 module.exports = TraceablePeerConnection;
11754
 module.exports = TraceablePeerConnection;
11751
 
11755
 
11752
 }).call(this,"/modules/xmpp/TraceablePeerConnection.js")
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
 (function (__filename){
11758
 (function (__filename){
11755
 /* global $, $iq, Promise, Strophe */
11759
 /* global $, $iq, Promise, Strophe */
11756
 
11760
 
12206
 module.exports = Moderator;
12210
 module.exports = Moderator;
12207
 
12211
 
12208
 }).call(this,"/modules/xmpp/moderator.js")
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
 (function (__filename){
12214
 (function (__filename){
12211
 /* global $, $iq, config, connection, focusMucJid, messageHandler,
12215
 /* global $, $iq, config, connection, focusMucJid, messageHandler,
12212
    Toolbar, Util, Promise */
12216
    Toolbar, Util, Promise */
12433
 module.exports = Recording;
12437
 module.exports = Recording;
12434
 
12438
 
12435
 }).call(this,"/modules/xmpp/recording.js")
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
 (function (__filename){
12441
 (function (__filename){
12438
 /* jshint -W117 */
12442
 /* jshint -W117 */
12439
 /* a simple MUC connection plugin
12443
 /* a simple MUC connection plugin
12843
 
12847
 
12844
 
12848
 
12845
 }).call(this,"/modules/xmpp/strophe.jingle.js")
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
 /* global Strophe */
12851
 /* global Strophe */
12848
 module.exports = function () {
12852
 module.exports = function () {
12849
 
12853
 
12991
 };
12995
 };
12992
 
12996
 
12993
 }).call(this,"/modules/xmpp/strophe.ping.js")
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
 (function (__filename){
12999
 (function (__filename){
12996
 /* jshint -W117 */
13000
 /* jshint -W117 */
12997
 var logger = require("jitsi-meet-logger").getLogger(__filename);
13001
 var logger = require("jitsi-meet-logger").getLogger(__filename);
13501
 module.exports = XMPP;
13505
 module.exports = XMPP;
13502
 
13506
 
13503
 }).call(this,"/modules/xmpp/xmpp.js")
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
 (function (process){
13509
 (function (process){
13506
 /*!
13510
 /*!
13507
  * async
13511
  * async
24566
 },{"./grammar":78,"dup":74}],81:[function(require,module,exports){
24570
 },{"./grammar":78,"dup":74}],81:[function(require,module,exports){
24567
 arguments[4][75][0].apply(exports,arguments)
24571
 arguments[4][75][0].apply(exports,arguments)
24568
 },{"./grammar":78,"dup":75}],82:[function(require,module,exports){
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
 module.exports = require('./lib/');
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
  * Module dependencies.
24587
  * Module dependencies.
24658
 exports.Manager = require('./manager');
24670
 exports.Manager = require('./manager');
24659
 exports.Socket = require('./socket');
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
  * Module dependencies.
24676
  * Module dependencies.
25163
   this.emitAll('reconnect', attempt);
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
  * Module exports.
25181
  * Module exports.
25189
   };
25201
   };
25190
 }
25202
 }
25191
 
25203
 
25192
-},{}],86:[function(require,module,exports){
25204
+},{}],90:[function(require,module,exports){
25193
 
25205
 
25194
 /**
25206
 /**
25195
  * Module dependencies.
25207
  * Module dependencies.
25576
   return this;
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
 (function (global){
25592
 (function (global){
25581
 
25593
 
25582
 /**
25594
 /**
25653
 }
25665
 }
25654
 
25666
 
25655
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Expose `Backoff`.
25671
  * Expose `Backoff`.
25740
 };
25752
 };
25741
 
25753
 
25742
 
25754
 
25743
-},{}],89:[function(require,module,exports){
25755
+},{}],93:[function(require,module,exports){
25744
 /**
25756
 /**
25745
  * Slice reference.
25757
  * Slice reference.
25746
  */
25758
  */
25765
   }
25777
   }
25766
 };
25778
 };
25767
 
25779
 
25768
-},{}],90:[function(require,module,exports){
25780
+},{}],94:[function(require,module,exports){
25769
 
25781
 
25770
 /**
25782
 /**
25771
  * Expose `Emitter`.
25783
  * Expose `Emitter`.
25931
   return !! this.listeners(event).length;
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
  * Expose `debug()` as the module.
25949
  * Expose `debug()` as the module.
26070
   if (window.localStorage) debug.enable(localStorage.debug);
26082
   if (window.localStorage) debug.enable(localStorage.debug);
26071
 } catch(e){}
26083
 } catch(e){}
26072
 
26084
 
26073
-},{}],92:[function(require,module,exports){
26085
+},{}],96:[function(require,module,exports){
26074
 
26086
 
26075
 module.exports =  require('./lib/');
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
 module.exports = require('./socket');
26091
 module.exports = require('./socket');
26080
 
26092
 
26086
  */
26098
  */
26087
 module.exports.parser = require('engine.io-parser');
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
 (function (global){
26102
 (function (global){
26091
 /**
26103
 /**
26092
  * Module dependencies.
26104
  * Module dependencies.
26795
 };
26807
 };
26796
 
26808
 
26797
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Module dependencies.
26812
  * Module dependencies.
26801
  */
26813
  */
26956
   this.emit('close');
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
 (function (global){
26972
 (function (global){
26961
 /**
26973
 /**
26962
  * Module dependencies
26974
  * Module dependencies
27013
 }
27025
 }
27014
 
27026
 
27015
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 (function (global){
27029
 (function (global){
27018
 
27030
 
27019
 /**
27031
 /**
27250
 };
27262
 };
27251
 
27263
 
27252
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 (function (global){
27266
 (function (global){
27255
 /**
27267
 /**
27256
  * Module requirements.
27268
  * Module requirements.
27638
 }
27650
 }
27639
 
27651
 
27640
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Module dependencies.
27655
  * Module dependencies.
27644
  */
27656
  */
27885
   return schema + '://' + this.hostname + port + this.path + query;
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
  * Module dependencies.
27902
  * Module dependencies.
27891
  */
27903
  */
28125
   return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
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
 // browser shim for xmlhttprequest module
28141
 // browser shim for xmlhttprequest module
28130
 var hasCORS = require('has-cors');
28142
 var hasCORS = require('has-cors');
28131
 
28143
 
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
 module.exports = function(a, b){
28180
 module.exports = function(a, b){
28169
   var fn = function(){};
28181
   var fn = function(){};
28171
   a.prototype = new fn;
28183
   a.prototype = new fn;
28172
   a.prototype.constructor = a;
28184
   a.prototype.constructor = a;
28173
 };
28185
 };
28174
-},{}],103:[function(require,module,exports){
28186
+},{}],107:[function(require,module,exports){
28175
 
28187
 
28176
 /**
28188
 /**
28177
  * This is the web browser implementation of `debug()`.
28189
  * This is the web browser implementation of `debug()`.
28320
 
28332
 
28321
 exports.enable(load());
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
  * This is the common logic for both the Node.js and web browser
28338
  * This is the common logic for both the Node.js and web browser
28519
   return val;
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
  * Helpers.
28536
  * Helpers.
28525
  */
28537
  */
28632
   return Math.ceil(ms / n) + ' ' + name + 's';
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
 (function (global){
28648
 (function (global){
28637
 /**
28649
 /**
28638
  * Module dependencies.
28650
  * Module dependencies.
29230
 };
29242
 };
29231
 
29243
 
29232
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Gets the keys for an object.
29248
  * Gets the keys for an object.
29251
   return arr;
29263
   return arr;
29252
 };
29264
 };
29253
 
29265
 
29254
-},{}],108:[function(require,module,exports){
29266
+},{}],112:[function(require,module,exports){
29255
 module.exports = after
29267
 module.exports = after
29256
 
29268
 
29257
 function after(count, callback, err_cb) {
29269
 function after(count, callback, err_cb) {
29281
 
29293
 
29282
 function noop() {}
29294
 function noop() {}
29283
 
29295
 
29284
-},{}],109:[function(require,module,exports){
29296
+},{}],113:[function(require,module,exports){
29285
 /**
29297
 /**
29286
  * An abstraction for slicing an arraybuffer even when
29298
  * An abstraction for slicing an arraybuffer even when
29287
  * ArrayBuffer.prototype.slice is not supported
29299
  * ArrayBuffer.prototype.slice is not supported
29312
   return result.buffer;
29324
   return result.buffer;
29313
 };
29325
 };
29314
 
29326
 
29315
-},{}],110:[function(require,module,exports){
29327
+},{}],114:[function(require,module,exports){
29316
 /*
29328
 /*
29317
  * base64-arraybuffer
29329
  * base64-arraybuffer
29318
  * https://github.com/niklasvh/base64-arraybuffer
29330
  * https://github.com/niklasvh/base64-arraybuffer
29373
   };
29385
   };
29374
 })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
29386
 })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
29375
 
29387
 
29376
-},{}],111:[function(require,module,exports){
29388
+},{}],115:[function(require,module,exports){
29377
 (function (global){
29389
 (function (global){
29378
 /**
29390
 /**
29379
  * Create a blob builder even when vendor prefixes exist
29391
  * Create a blob builder even when vendor prefixes exist
29426
 })();
29438
 })();
29427
 
29439
 
29428
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 (function (global){
29442
 (function (global){
29431
 
29443
 
29432
 /*
29444
 /*
29488
 }
29500
 }
29489
 
29501
 
29490
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 module.exports = Array.isArray || function (arr) {
29504
 module.exports = Array.isArray || function (arr) {
29493
   return Object.prototype.toString.call(arr) == '[object Array]';
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
 (function (global){
29509
 (function (global){
29498
 /*! http://mths.be/utf8js v2.0.0 by @mathias */
29510
 /*! http://mths.be/utf8js v2.0.0 by @mathias */
29499
 ;(function(root) {
29511
 ;(function(root) {
29736
 }(this));
29748
 }(this));
29737
 
29749
 
29738
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Module dependencies.
29754
  * Module dependencies.
29761
   module.exports = false;
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
  * Returns `this`. Execute this without a "context" (i.e. without it being
29779
  * Returns `this`. Execute this without a "context" (i.e. without it being
29771
 
29783
 
29772
 module.exports = (function () { return this; })();
29784
 module.exports = (function () { return this; })();
29773
 
29785
 
29774
-},{}],117:[function(require,module,exports){
29786
+},{}],121:[function(require,module,exports){
29775
 (function (global){
29787
 (function (global){
29776
 /**
29788
 /**
29777
  * JSON parse.
29789
  * JSON parse.
29806
   }
29818
   }
29807
 };
29819
 };
29808
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Compiles a querystring
29823
  * Compiles a querystring
29812
  * Returns string representation of the object
29824
  * Returns string representation of the object
29845
   return qry;
29857
   return qry;
29846
 };
29858
 };
29847
 
29859
 
29848
-},{}],119:[function(require,module,exports){
29860
+},{}],123:[function(require,module,exports){
29849
 /**
29861
 /**
29850
  * Parses an URI
29862
  * Parses an URI
29851
  *
29863
  *
29886
     return uri;
29898
     return uri;
29887
 };
29899
 };
29888
 
29900
 
29889
-},{}],120:[function(require,module,exports){
29901
+},{}],124:[function(require,module,exports){
29890
 
29902
 
29891
 /**
29903
 /**
29892
  * Module dependencies.
29904
  * Module dependencies.
29931
 
29943
 
29932
 if (WebSocket) ws.prototype = WebSocket.prototype;
29944
 if (WebSocket) ws.prototype = WebSocket.prototype;
29933
 
29945
 
29934
-},{}],121:[function(require,module,exports){
29946
+},{}],125:[function(require,module,exports){
29935
 (function (global){
29947
 (function (global){
29936
 
29948
 
29937
 /*
29949
 /*
29993
 }
30005
 }
29994
 
30006
 
29995
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 var indexOf = [].indexOf;
30012
 var indexOf = [].indexOf;
30001
 
30013
 
30006
   }
30018
   }
30007
   return -1;
30019
   return -1;
30008
 };
30020
 };
30009
-},{}],124:[function(require,module,exports){
30021
+},{}],128:[function(require,module,exports){
30010
 
30022
 
30011
 /**
30023
 /**
30012
  * HOP ref.
30024
  * HOP ref.
30091
 exports.isEmpty = function(obj){
30103
 exports.isEmpty = function(obj){
30092
   return 0 == exports.length(obj);
30104
   return 0 == exports.length(obj);
30093
 };
30105
 };
30094
-},{}],125:[function(require,module,exports){
30106
+},{}],129:[function(require,module,exports){
30095
 /**
30107
 /**
30096
  * Parses an URI
30108
  * Parses an URI
30097
  *
30109
  *
30118
   return uri;
30130
   return uri;
30119
 };
30131
 };
30120
 
30132
 
30121
-},{}],126:[function(require,module,exports){
30133
+},{}],130:[function(require,module,exports){
30122
 (function (global){
30134
 (function (global){
30123
 /*global Blob,File*/
30135
 /*global Blob,File*/
30124
 
30136
 
30263
 };
30275
 };
30264
 
30276
 
30265
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
  * Module dependencies.
30281
  * Module dependencies.
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
 (function (global){
30681
 (function (global){
30670
 
30682
 
30671
 module.exports = isBuf;
30683
 module.exports = isBuf;
30682
 }
30694
 }
30683
 
30695
 
30684
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
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
 /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
30700
 /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
30689
 ;(function (window) {
30701
 ;(function (window) {
30690
   // Convenience aliases.
30702
   // Convenience aliases.
31547
   }
31559
   }
31548
 }(this));
31560
 }(this));
31549
 
31561
 
31550
-},{}],131:[function(require,module,exports){
31562
+},{}],135:[function(require,module,exports){
31551
 module.exports = toArray
31563
 module.exports = toArray
31552
 
31564
 
31553
 function toArray(list, index) {
31565
 function toArray(list, index) {
31562
     return array
31574
     return array
31563
 }
31575
 }
31564
 
31576
 
31565
-},{}],132:[function(require,module,exports){
31577
+},{}],136:[function(require,module,exports){
31566
 var MediaStreamType = {
31578
 var MediaStreamType = {
31567
     VIDEO_TYPE: "Video",
31579
     VIDEO_TYPE: "Video",
31568
 
31580
 
31569
     AUDIO_TYPE: "Audio"
31581
     AUDIO_TYPE: "Audio"
31570
 };
31582
 };
31571
 module.exports = MediaStreamType;
31583
 module.exports = MediaStreamType;
31572
-},{}],133:[function(require,module,exports){
31584
+},{}],137:[function(require,module,exports){
31573
 var RTCEvents = {
31585
 var RTCEvents = {
31574
     RTC_READY: "rtc.ready",
31586
     RTC_READY: "rtc.ready",
31575
     DATA_CHANNEL_OPEN: "rtc.data_channel_open",
31587
     DATA_CHANNEL_OPEN: "rtc.data_channel_open",
31581
 };
31593
 };
31582
 
31594
 
31583
 module.exports = RTCEvents;
31595
 module.exports = RTCEvents;
31584
-},{}],134:[function(require,module,exports){
31596
+},{}],138:[function(require,module,exports){
31585
 var Resolutions = {
31597
 var Resolutions = {
31586
     "1080": {
31598
     "1080": {
31587
         width: 1920,
31599
         width: 1920,
31635
     }
31647
     }
31636
 };
31648
 };
31637
 module.exports = Resolutions;
31649
 module.exports = Resolutions;
31638
-},{}],135:[function(require,module,exports){
31650
+},{}],139:[function(require,module,exports){
31639
 var AuthenticationEvents = {
31651
 var AuthenticationEvents = {
31640
     /**
31652
     /**
31641
      * Event callback arguments:
31653
      * Event callback arguments:
31649
 };
31661
 };
31650
 module.exports = AuthenticationEvents;
31662
 module.exports = AuthenticationEvents;
31651
 
31663
 
31652
-},{}],136:[function(require,module,exports){
31664
+},{}],140:[function(require,module,exports){
31653
 var DesktopSharingEventTypes = {
31665
 var DesktopSharingEventTypes = {
31654
     /**
31666
     /**
31655
      * An event which indicates that the jidesha extension for Firefox is
31667
      * An event which indicates that the jidesha extension for Firefox is
31660
 
31672
 
31661
 module.exports = DesktopSharingEventTypes;
31673
 module.exports = DesktopSharingEventTypes;
31662
 
31674
 
31663
-},{}],137:[function(require,module,exports){
31675
+},{}],141:[function(require,module,exports){
31664
 module.exports = {
31676
 module.exports = {
31665
     /**
31677
     /**
31666
      * An event carrying connection statistics.
31678
      * An event carrying connection statistics.
31676
     STOP: "statistics.stop"
31688
     STOP: "statistics.stop"
31677
 };
31689
 };
31678
 
31690
 
31679
-},{}],138:[function(require,module,exports){
31691
+},{}],142:[function(require,module,exports){
31680
 var Constants = {
31692
 var Constants = {
31681
     LOCAL_JID: 'local'
31693
     LOCAL_JID: 'local'
31682
 };
31694
 };
31683
 module.exports = Constants;
31695
 module.exports = Constants;
31684
-},{}],139:[function(require,module,exports){
31696
+},{}],143:[function(require,module,exports){
31685
 var XMPPEvents = {
31697
 var XMPPEvents = {
31686
     // Designates an event indicating that the connection to the XMPP server
31698
     // Designates an event indicating that the connection to the XMPP server
31687
     // failed.
31699
     // failed.

+ 12
- 12
lib-jitsi-meet.min.js
文件差异内容过多而无法显示
查看文件


+ 4
- 0
modules/RTC/RTCUtils.js 查看文件

543
                             return;
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
                         attachMediaStream(elSel[0], stream);
550
                         attachMediaStream(elSel[0], stream);
547
                     };
551
                     };
548
                     self.getStreamID = function (stream) {
552
                     self.getStreamID = function (stream) {

正在加载...
取消
保存