@techsee/techsee-media-service 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
4
 
5
5
  (function (f) {
6
- if ((typeof exports === 'undefined' ? 'undefined' : _typeof2(exports)) === 'object' && typeof module !== 'undefined') {
6
+ if ((typeof exports === "undefined" ? "undefined" : _typeof2(exports)) === "object" && typeof module !== "undefined") {
7
7
  module.exports = f();
8
- } else if (typeof define === 'function' && define.amd) {
8
+ } else if (typeof define === "function" && define.amd) {
9
9
  define([], f);
10
10
  } else {
11
- var g;
12
- if (typeof window !== 'undefined') {
11
+ var g;if (typeof window !== "undefined") {
13
12
  g = window;
14
- } else if (typeof global !== 'undefined') {
13
+ } else if (typeof global !== "undefined") {
15
14
  g = global;
16
- } else if (typeof self !== 'undefined') {
15
+ } else if (typeof self !== "undefined") {
17
16
  g = self;
18
17
  } else {
19
18
  g = this;
20
- }
21
- g.webrtcIeShim = f();
19
+ }g.webrtcIeShim = f();
22
20
  }
23
21
  })(function () {
24
- var define, module, exports;
25
- return function () {
22
+ var define, module, exports;return function () {
26
23
  function r(e, n, t) {
27
24
  function o(i, f) {
28
25
  if (!n[i]) {
29
26
  if (!e[i]) {
30
- var c = 'function' == typeof require && require;
31
- if (!f && c) return c(i, !0);
32
- if (u) return u(i, !0);
33
- var a = new Error('Cannot find module \'' + i + '\'');
34
- throw a.code = 'MODULE_NOT_FOUND', a;
35
- }
36
- var p = n[i] = { exports: {} };
37
- e[i][0].call(p.exports, function (r) {
38
- var n = e[i][1][r];
39
- return o(n || r);
27
+ var c = "function" == typeof require && require;if (!f && c) return c(i, !0);if (u) return u(i, !0);var a = new Error("Cannot find module '" + i + "'");throw a.code = "MODULE_NOT_FOUND", a;
28
+ }var p = n[i] = { exports: {} };e[i][0].call(p.exports, function (r) {
29
+ var n = e[i][1][r];return o(n || r);
40
30
  }, p, p.exports, r, e, n, t);
41
- }
42
- return n[i].exports;
43
- }
44
-
45
- for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++) {
31
+ }return n[i].exports;
32
+ }for (var u = "function" == typeof require && require, i = 0; i < t.length; i++) {
46
33
  o(t[i]);
47
34
  }return o;
48
- }
49
-
50
- return r;
51
- }()({
52
- 1: [function (require, module, exports) {
35
+ }return r;
36
+ }()({ 1: [function (require, module, exports) {
53
37
  exports.endianness = function () {
54
38
  return 'LE';
55
39
  };
@@ -112,8 +96,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
112
96
  exports.homedir = function () {
113
97
  return '/';
114
98
  };
115
- }, {}],
116
- 2: [function (require, module, exports) {
99
+ }, {}], 2: [function (require, module, exports) {
117
100
  // shim for using process in browser
118
101
  var process = module.exports = {};
119
102
 
@@ -128,11 +111,9 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
128
111
  function defaultSetTimout() {
129
112
  throw new Error('setTimeout has not been defined');
130
113
  }
131
-
132
114
  function defaultClearTimeout() {
133
115
  throw new Error('clearTimeout has not been defined');
134
116
  }
135
-
136
117
  (function () {
137
118
  try {
138
119
  if (typeof setTimeout === 'function') {
@@ -153,7 +134,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
153
134
  cachedClearTimeout = defaultClearTimeout;
154
135
  }
155
136
  })();
156
-
157
137
  function runTimeout(fun) {
158
138
  if (cachedSetTimeout === setTimeout) {
159
139
  //normal enviroments in sane situations
@@ -177,7 +157,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
177
157
  }
178
158
  }
179
159
  }
180
-
181
160
  function runClearTimeout(marker) {
182
161
  if (cachedClearTimeout === clearTimeout) {
183
162
  //normal enviroments in sane situations
@@ -202,7 +181,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
202
181
  }
203
182
  }
204
183
  }
205
-
206
184
  var queue = [];
207
185
  var draining = false;
208
186
  var currentQueue;
@@ -265,7 +243,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
265
243
  this.fun = fun;
266
244
  this.array = array;
267
245
  }
268
-
269
246
  Item.prototype.run = function () {
270
247
  this.fun.apply(null, this.array);
271
248
  };
@@ -305,8 +282,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
305
282
  process.umask = function () {
306
283
  return 0;
307
284
  };
308
- }, {}],
309
- 3: [function (require, module, exports) {
285
+ }, {}], 3: [function (require, module, exports) {
310
286
  'use strict';
311
287
 
312
288
  var browser = require('detect-browser').detect();
@@ -442,23 +418,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
442
418
  VideoRenderer.handle(videos[i]);
443
419
  }
444
420
  }
445
- }, {
446
- './lib/EventTarget.js': 4,
447
- './lib/MediaDevices.js': 6,
448
- './lib/MediaStream.js': 7,
449
- './lib/MediaStreamTrack.js': 8,
450
- './lib/RTCDataChannel.js': 9,
451
- './lib/RTCIceCandidate.js': 10,
452
- './lib/RTCPeerConnection.js': 11,
453
- './lib/RTCRtpReceiver.js': 12,
454
- './lib/RTCRtpSender.js': 13,
455
- './lib/RTCRtpTransceiver.js': 14,
456
- './lib/RTCSessionDescription.js': 15,
457
- './lib/VideoRenderer.js': 16,
458
- './lib/WebRTCProxy.js': 17,
459
- 'detect-browser': 18
460
- }],
461
- 4: [function (require, module, exports) {
421
+ }, { "./lib/EventTarget.js": 4, "./lib/MediaDevices.js": 6, "./lib/MediaStream.js": 7, "./lib/MediaStreamTrack.js": 8, "./lib/RTCDataChannel.js": 9, "./lib/RTCIceCandidate.js": 10, "./lib/RTCPeerConnection.js": 11, "./lib/RTCRtpReceiver.js": 12, "./lib/RTCRtpSender.js": 13, "./lib/RTCRtpTransceiver.js": 14, "./lib/RTCSessionDescription.js": 15, "./lib/VideoRenderer.js": 16, "./lib/WebRTCProxy.js": 17, "detect-browser": 18 }], 4: [function (require, module, exports) {
462
422
  /**
463
423
  * @author Toru Nagashima <https://github.com/mysticatea>
464
424
  * @copyright 2015 Toru Nagashima. All rights reserved.
@@ -485,10 +445,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
485
445
  * @private
486
446
  */
487
447
 
488
- var _typeof = typeof Symbol === 'function' && _typeof2(Symbol.iterator) === 'symbol' ? function (obj) {
489
- return typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
448
+ var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
449
+ return typeof obj === "undefined" ? "undefined" : _typeof2(obj);
490
450
  } : function (obj) {
491
- return obj && typeof Symbol === 'function' && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
451
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj);
492
452
  };
493
453
 
494
454
  var privateData = new WeakMap();
@@ -508,7 +468,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
508
468
  */
509
469
  function pd(event) {
510
470
  var retv = privateData.get(event);
511
- console.assert(retv != null, '\'this\' is expected an Event object, but got', event);
471
+ console.assert(retv != null, "'this' is expected an Event object, but got", event);
512
472
  return retv;
513
473
  }
514
474
 
@@ -535,7 +495,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
535
495
  });
536
496
 
537
497
  // https://heycam.github.io/webidl/#Unforgeable
538
- Object.defineProperty(this, 'isTrusted', { value: false, enumerable: true });
498
+ Object.defineProperty(this, "isTrusted", { value: false, enumerable: true });
539
499
 
540
500
  // Define accessors
541
501
  var keys = Object.keys(event);
@@ -630,7 +590,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
630
590
  */
631
591
  stopPropagation: function stopPropagation() {
632
592
  var data = pd(this);
633
- if (typeof data.event.stopPropagation === 'function') {
593
+ if (typeof data.event.stopPropagation === "function") {
634
594
  data.event.stopPropagation();
635
595
  }
636
596
  },
@@ -643,7 +603,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
643
603
  var data = pd(this);
644
604
 
645
605
  data.stopped = true;
646
- if (typeof data.event.stopImmediatePropagation === 'function') {
606
+ if (typeof data.event.stopImmediatePropagation === "function") {
647
607
  data.event.stopImmediatePropagation();
648
608
  }
649
609
  },
@@ -671,7 +631,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
671
631
  preventDefault: function preventDefault() {
672
632
  var data = pd(this);
673
633
  if (data.passiveListener != null) {
674
- console.warn('Event#preventDefault() was called from a passive listener:', data.passiveListener);
634
+ console.warn("Event#preventDefault() was called from a passive listener:", data.passiveListener);
675
635
  return;
676
636
  }
677
637
  if (!data.event.cancelable) {
@@ -679,7 +639,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
679
639
  }
680
640
 
681
641
  data.canceled = true;
682
- if (typeof data.event.preventDefault === 'function') {
642
+ if (typeof data.event.preventDefault === "function") {
683
643
  data.event.preventDefault();
684
644
  }
685
645
  },
@@ -710,10 +670,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
710
670
  };
711
671
 
712
672
  // `constructor` is not enumerable.
713
- Object.defineProperty(Event.prototype, 'constructor', { value: Event, configurable: true, writable: true });
673
+ Object.defineProperty(Event.prototype, "constructor", { value: Event, configurable: true, writable: true });
714
674
 
715
675
  // Ensure `event instanceof window.Event` is `true`.
716
- if (typeof window !== 'undefined' && typeof window.Event !== 'undefined') {
676
+ if (typeof window !== "undefined" && typeof window.Event !== "undefined") {
717
677
  Object.setPrototypeOf(Event.prototype, window.Event.prototype);
718
678
 
719
679
  // Make association for wrappers.
@@ -785,7 +745,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
785
745
  var key = keys[i];
786
746
  if (!(key in BaseEvent.prototype)) {
787
747
  var descriptor = Object.getOwnPropertyDescriptor(proto, key);
788
- var isFunc = typeof descriptor.value === 'function';
748
+ var isFunc = typeof descriptor.value === "function";
789
749
  Object.defineProperty(CustomEvent.prototype, key, isFunc ? defineCallDescriptor(key) : defineRedirectDescriptor(key));
790
750
  }
791
751
  }
@@ -894,7 +854,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
894
854
  * @returns {boolean} `true` if the value is an object.
895
855
  */
896
856
  function isObject(x) {
897
- return x !== null && (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object'; //eslint-disable-line no-restricted-syntax
857
+ return x !== null && (typeof x === "undefined" ? "undefined" : _typeof(x)) === "object"; //eslint-disable-line no-restricted-syntax
898
858
  }
899
859
 
900
860
  /**
@@ -905,7 +865,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
905
865
  */
906
866
  function getListeners(eventTarget) {
907
867
  var listeners = listenersMap.get(eventTarget);
908
- console.assert(listeners != null, '\'this\' is expected an EventTarget object');
868
+ console.assert(listeners != null, "'this' is expected an EventTarget object");
909
869
  return listeners || new Map();
910
870
  }
911
871
 
@@ -929,7 +889,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
929
889
  return null;
930
890
  },
931
891
  set: function set(listener) {
932
- if (typeof listener !== 'function' && !isObject(listener)) {
892
+ if (typeof listener !== "function" && !isObject(listener)) {
933
893
  listener = null; // eslint-disable-line no-param-reassign
934
894
  }
935
895
  var listeners = getListeners(this);
@@ -983,7 +943,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
983
943
  * @returns {void}
984
944
  */
985
945
  function defineEventAttribute(eventTargetPrototype, eventName) {
986
- Object.defineProperty(eventTargetPrototype, 'on' + eventName, defineEventAttributeDescriptor(eventName));
946
+ Object.defineProperty(eventTargetPrototype, "on" + eventName, defineEventAttributeDescriptor(eventName));
987
947
  }
988
948
 
989
949
  /**
@@ -1038,7 +998,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1038
998
  }
1039
999
  return defineCustomEventTarget(types);
1040
1000
  }
1041
- throw new TypeError('Cannot call a class as a function');
1001
+ throw new TypeError("Cannot call a class as a function");
1042
1002
  /*eslint-enable consistent-return */
1043
1003
  }
1044
1004
 
@@ -1055,8 +1015,8 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1055
1015
  if (listener == null) {
1056
1016
  return false;
1057
1017
  }
1058
- if (typeof listener !== 'function' && !isObject(listener)) {
1059
- throw new TypeError('\'listener\' should be a function or an object.');
1018
+ if (typeof listener !== "function" && !isObject(listener)) {
1019
+ throw new TypeError("'listener' should be a function or an object.");
1060
1020
  }
1061
1021
 
1062
1022
  var listeners = getListeners(this);
@@ -1137,8 +1097,8 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1137
1097
  * @returns {boolean} `false` if canceled.
1138
1098
  */
1139
1099
  dispatchEvent: function dispatchEvent(event) {
1140
- if (event == null || typeof event.type !== 'string') {
1141
- throw new TypeError('"event.type" should be a string.');
1100
+ if (event == null || typeof event.type !== "string") {
1101
+ throw new TypeError("\"event.type\" should be a string.");
1142
1102
  }
1143
1103
 
1144
1104
  // If listeners aren't registered, terminate.
@@ -1171,9 +1131,9 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1171
1131
 
1172
1132
  // Call this listener
1173
1133
  setPassiveListener(wrappedEvent, node.passive ? node.listener : null);
1174
- if (typeof node.listener === 'function') {
1134
+ if (typeof node.listener === "function") {
1175
1135
  node.listener.call(this, wrappedEvent);
1176
- } else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === 'function') {
1136
+ } else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === "function") {
1177
1137
  node.listener.handleEvent(wrappedEvent);
1178
1138
  }
1179
1139
 
@@ -1193,36 +1153,30 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1193
1153
  };
1194
1154
 
1195
1155
  // `constructor` is not enumerable.
1196
- Object.defineProperty(EventTarget.prototype, 'constructor', {
1197
- value: EventTarget,
1198
- configurable: true,
1199
- writable: true
1200
- });
1156
+ Object.defineProperty(EventTarget.prototype, "constructor", { value: EventTarget, configurable: true, writable: true });
1201
1157
 
1202
1158
  // Ensure `eventTarget instanceof window.EventTarget` is `true`.
1203
- if (typeof window !== 'undefined' && typeof window.EventTarget !== 'undefined') {
1159
+ if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") {
1204
1160
  Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);
1205
1161
  }
1206
1162
 
1207
1163
  module.exports = EventTarget;
1208
- module.exports.EventTarget = module.exports['default'] = EventTarget;
1164
+ module.exports.EventTarget = module.exports["default"] = EventTarget;
1209
1165
  module.exports.defineEventAttribute = defineEventAttribute;
1210
- }, {}],
1211
- 5: [function (require, module, exports) {
1212
- 'use strict';
1166
+ }, {}], 5: [function (require, module, exports) {
1167
+ "use strict";
1213
1168
 
1214
1169
  function InvalidStateError() {
1215
1170
  try {
1216
1171
  var xhr = new XMLHttpRequest();
1217
- xhr.responseType = 'blob';
1172
+ xhr.responseType = "blob";
1218
1173
  } catch (e) {
1219
1174
  return e;
1220
1175
  }
1221
1176
  }
1222
1177
 
1223
1178
  module.exports = InvalidStateError;
1224
- }, {}],
1225
- 6: [function (require, module, exports) {
1179
+ }, {}], 6: [function (require, module, exports) {
1226
1180
  'use strict';
1227
1181
 
1228
1182
  var WebRTCProxy = require('./WebRTCProxy.js');
@@ -1232,14 +1186,14 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1232
1186
  var defineEventAttribute = require('./EventTarget.js').defineEventAttribute;
1233
1187
 
1234
1188
  /*
1235
- interface MediaDevices : EventTarget {
1236
- attribute EventHandler ondevicechange;
1237
- Promise<sequence<MediaDeviceInfo>> enumerateDevices();
1238
- }
1239
- partial interface MediaDevices {
1240
- MediaTrackSupportedConstraints getSupportedConstraints();
1241
- Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
1242
- }
1189
+ interface MediaDevices : EventTarget {
1190
+ attribute EventHandler ondevicechange;
1191
+ Promise<sequence<MediaDeviceInfo>> enumerateDevices();
1192
+ }
1193
+ partial interface MediaDevices {
1194
+ MediaTrackSupportedConstraints getSupportedConstraints();
1195
+ Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
1196
+ }
1243
1197
  */
1244
1198
  var MediaDevices = function MediaDevices() {
1245
1199
  //Init event targetr
@@ -1300,34 +1254,34 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1300
1254
  });
1301
1255
  Object.defineProperty(MediaDevices, 'prototype', { writable: false });
1302
1256
  module.exports = MediaDevices;
1303
- }, { './EventTarget.js': 4, './MediaStream.js': 7, './MediaStreamTrack.js': 8, './WebRTCProxy.js': 17 }],
1304
- 7: [function (require, module, exports) {
1257
+ }, { "./EventTarget.js": 4, "./MediaStream.js": 7, "./MediaStreamTrack.js": 8, "./WebRTCProxy.js": 17 }], 7: [function (require, module, exports) {
1305
1258
  'use strict';
1306
1259
 
1260
+ var MediaStreamTrack = require('./MediaStreamTrack');
1307
1261
  var EventTarget = require('./EventTarget.js').EventTarget;
1308
1262
  var defineEventAttribute = require('./EventTarget.js').defineEventAttribute;
1309
1263
  /*
1310
1264
  [Exposed=Window,
1311
- Constructor,
1312
- Constructor(MediaStream stream),
1313
- Constructor(sequence<MediaStreamTrack> tracks)]
1265
+ Constructor,
1266
+ Constructor(MediaStream stream),
1267
+ Constructor(sequence<MediaStreamTrack> tracks)]
1314
1268
  interface MediaStream : EventTarget {
1315
- readonly attribute DOMString id;
1316
- sequence<MediaStreamTrack> getAudioTracks();
1317
- sequence<MediaStreamTrack> getVideoTracks();
1318
- sequence<MediaStreamTrack> getTracks();
1319
- MediaStreamTrack? getTrackById(DOMString trackId);
1320
- void addTrack(MediaStreamTrack track);
1321
- void removeTrack(MediaStreamTrack track);
1322
- MediaStream clone();
1323
- readonly attribute boolean active;
1324
- attribute EventHandler onaddtrack;
1325
- attribute EventHandler onremovetrack;
1269
+ readonly attribute DOMString id;
1270
+ sequence<MediaStreamTrack> getAudioTracks();
1271
+ sequence<MediaStreamTrack> getVideoTracks();
1272
+ sequence<MediaStreamTrack> getTracks();
1273
+ MediaStreamTrack? getTrackById(DOMString trackId);
1274
+ void addTrack(MediaStreamTrack track);
1275
+ void removeTrack(MediaStreamTrack track);
1276
+ MediaStream clone();
1277
+ readonly attribute boolean active;
1278
+ attribute EventHandler onaddtrack;
1279
+ attribute EventHandler onremovetrack;
1326
1280
  };
1327
- */
1281
+ */
1328
1282
  var count = 0;
1329
1283
 
1330
- var MediaStream = function MediaStream(label, tracks) {
1284
+ var MediaStream = function MediaStream(tracks, label) {
1331
1285
  //Init event target
1332
1286
  EventTarget.call(this);
1333
1287
 
@@ -1336,19 +1290,25 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1336
1290
  tracks: {}
1337
1291
  };
1338
1292
 
1339
- //Add input tracks to our map
1340
- if (tracks) for (var i = 0; i < tracks.length; ++i) {
1341
- this.priv.tracks[tracks[i].id] = tracks[i];
1293
+ //Actual WebRTC MediaStream supports MediaStream or array of MediaTracks as constructor input.
1294
+ //Because of time constraints we implementing the support for array of tracks only.
1295
+ if (tracks) {
1296
+ if (!(tracks instanceof Array)) {
1297
+ throw new Error('tracks should be an array of MediaStreamTrack');
1298
+ }
1299
+
1300
+ for (var i = 0; i < tracks.length; ++i) {
1301
+ if (!(tracks[i] instanceof MediaStreamTrack)) {
1302
+ throw new Error('Each item in tracks array should be an instance of MediaStreamTrack');
1303
+ }
1304
+ this.priv.tracks[tracks[i].id] = tracks[i];
1305
+ }
1342
1306
  }
1307
+
1343
1308
  var id = label || 'stream-' + count++;
1344
1309
 
1345
1310
  Object.defineProperty(this, 'id', { enumerable: true, configurable: false, writable: false, value: id });
1346
- Object.defineProperty(this, 'active', {
1347
- enumerable: true,
1348
- configurable: false,
1349
- writable: false,
1350
- value: true
1351
- });
1311
+ Object.defineProperty(this, 'active', { enumerable: true, configurable: false, writable: false, value: true });
1352
1312
 
1353
1313
  return this;
1354
1314
  };
@@ -1373,8 +1333,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1373
1333
  if (this.priv.tracks[id].kind === 'audio') {
1374
1334
  arr.push(this.priv.tracks[id]);
1375
1335
  }
1376
- }
1377
- return arr;
1336
+ }return arr;
1378
1337
  };
1379
1338
 
1380
1339
  MediaStream.prototype.getVideoTracks = function () {
@@ -1383,8 +1342,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1383
1342
  if (this.priv.tracks[id].kind === 'video') {
1384
1343
  arr.push(this.priv.tracks[id]);
1385
1344
  }
1386
- }
1387
- return arr;
1345
+ }return arr;
1388
1346
  };
1389
1347
 
1390
1348
  MediaStream.prototype.getTracks = function () {
@@ -1442,8 +1400,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1442
1400
  });
1443
1401
  Object.defineProperty(MediaStream, 'prototype', { writable: false });
1444
1402
  module.exports = MediaStream;
1445
- }, { './EventTarget.js': 4 }],
1446
- 8: [function (require, module, exports) {
1403
+ }, { "./EventTarget.js": 4, "./MediaStreamTrack": 8 }], 8: [function (require, module, exports) {
1447
1404
  'use strict';
1448
1405
 
1449
1406
  var EventTarget = require('./EventTarget.js').EventTarget;
@@ -1451,26 +1408,26 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1451
1408
  /*
1452
1409
  [Exposed=Window]
1453
1410
  interface MediaStreamTrack : EventTarget {
1454
- readonly attribute DOMString kind;
1455
- readonly attribute DOMString id;
1456
- readonly attribute DOMString label;
1457
- attribute boolean enabled;
1458
- readonly attribute boolean muted;
1459
- attribute EventHandler onmute;
1460
- attribute EventHandler onunmute;
1461
- readonly attribute MediaStreamTrackState readyState;
1462
- attribute EventHandler onended;
1463
- MediaStreamTrack clone();
1464
- void stop();
1465
- MediaTrackCapabilities getCapabilities();
1466
- MediaTrackConstraints getConstraints();
1467
- MediaTrackSettings getSettings();
1468
- Promise<void> applyConstraints(optional MediaTrackConstraints constraints);
1469
- attribute EventHandler onoverconstrained;
1470
- };
1471
- partial interface MediaStreamTrack {
1472
- readonly attribute boolean isolated;
1473
- attribute EventHandler onisolationchange;
1411
+ readonly attribute DOMString kind;
1412
+ readonly attribute DOMString id;
1413
+ readonly attribute DOMString label;
1414
+ attribute boolean enabled;
1415
+ readonly attribute boolean muted;
1416
+ attribute EventHandler onmute;
1417
+ attribute EventHandler onunmute;
1418
+ readonly attribute MediaStreamTrackState readyState;
1419
+ attribute EventHandler onended;
1420
+ MediaStreamTrack clone();
1421
+ void stop();
1422
+ MediaTrackCapabilities getCapabilities();
1423
+ MediaTrackConstraints getConstraints();
1424
+ MediaTrackSettings getSettings();
1425
+ Promise<void> applyConstraints(optional MediaTrackConstraints constraints);
1426
+ attribute EventHandler onoverconstrained;
1427
+ };
1428
+ partial interface MediaStreamTrack {
1429
+ readonly attribute boolean isolated;
1430
+ attribute EventHandler onisolationchange;
1474
1431
  };
1475
1432
  */
1476
1433
  var MediaStreamTrack = function MediaStreamTrack(track) {
@@ -1566,41 +1523,40 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1566
1523
  value: 'MediaStreamTrack'
1567
1524
  });
1568
1525
  module.exports = MediaStreamTrack;
1569
- }, { './EventTarget.js': 4 }],
1570
- 9: [function (require, module, exports) {
1571
- 'use strict';
1526
+ }, { "./EventTarget.js": 4 }], 9: [function (require, module, exports) {
1527
+ "use strict";
1572
1528
 
1573
- var EventTarget = require('./EventTarget.js').EventTarget;
1574
- var defineEventAttribute = require('./EventTarget.js').defineEventAttribute;
1575
- var InvalidStateError = require('./InvalidStateError.js');
1529
+ var EventTarget = require("./EventTarget.js").EventTarget;
1530
+ var defineEventAttribute = require("./EventTarget.js").defineEventAttribute;
1531
+ var InvalidStateError = require("./InvalidStateError.js");
1576
1532
 
1577
1533
  /*
1578
- [Exposed=Window]
1579
- interface RTCRTCDataChannel : EventTarget {
1580
- readonly attribute USVString label;
1581
- readonly attribute boolean ordered;
1582
- readonly attribute unsigned short? maxPacketLifeTime;
1583
- readonly attribute unsigned short? maxRetransmits;
1584
- readonly attribute USVString protocol;
1585
- readonly attribute boolean negotiated;
1586
- readonly attribute unsigned short? id;
1587
- readonly attribute RTCPriorityType priority;
1588
- readonly attribute RTCRTCDataChannelState readyState;
1589
- readonly attribute unsigned long bufferedAmount;
1590
- attribute unsigned long bufferedAmountLowThreshold;
1591
- attribute EventHandler onopen;
1592
- attribute EventHandler onbufferedamountlow;
1593
- attribute EventHandler onerror;
1594
- attribute EventHandler onclose;
1595
- void close();
1596
- attribute EventHandler onmessage;
1597
- attribute DOMString binaryType;
1598
- void send(USVString data);
1599
- void send(Blob data);
1600
- void send(ArrayBuffer data);
1601
- void send(ArrayBufferView data);
1534
+ [Exposed=Window]
1535
+ interface RTCRTCDataChannel : EventTarget {
1536
+ readonly attribute USVString label;
1537
+ readonly attribute boolean ordered;
1538
+ readonly attribute unsigned short? maxPacketLifeTime;
1539
+ readonly attribute unsigned short? maxRetransmits;
1540
+ readonly attribute USVString protocol;
1541
+ readonly attribute boolean negotiated;
1542
+ readonly attribute unsigned short? id;
1543
+ readonly attribute RTCPriorityType priority;
1544
+ readonly attribute RTCRTCDataChannelState readyState;
1545
+ readonly attribute unsigned long bufferedAmount;
1546
+ attribute unsigned long bufferedAmountLowThreshold;
1547
+ attribute EventHandler onopen;
1548
+ attribute EventHandler onbufferedamountlow;
1549
+ attribute EventHandler onerror;
1550
+ attribute EventHandler onclose;
1551
+ void close();
1552
+ attribute EventHandler onmessage;
1553
+ attribute DOMString binaryType;
1554
+ void send(USVString data);
1555
+ void send(Blob data);
1556
+ void send(ArrayBuffer data);
1557
+ void send(ArrayBufferView data);
1602
1558
  };
1603
- */
1559
+ */
1604
1560
  var RTCDataChannel = function RTCDataChannel(dataChannel) {
1605
1561
  //Init event targetr
1606
1562
  EventTarget.call(this);
@@ -1608,59 +1564,40 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1608
1564
  //Private vars
1609
1565
  var self = this;
1610
1566
  var priv = this.priv = {
1611
- binaryType: 'blob',
1567
+ binaryType: "blob",
1612
1568
  dataChannel: dataChannel
1613
1569
  };
1614
1570
 
1615
1571
  //Read only properties
1616
- Object.defineProperty(this, 'label', {
1617
- enumerable: true, configurable: false, get: function get() {
1572
+ Object.defineProperty(this, 'label', { enumerable: true, configurable: false, get: function get() {
1618
1573
  return priv.dataChannel.label;
1619
- }
1620
- });
1621
- Object.defineProperty(this, 'ordered', {
1622
- enumerable: true, configurable: false, get: function get() {
1574
+ } });
1575
+ Object.defineProperty(this, 'ordered', { enumerable: true, configurable: false, get: function get() {
1623
1576
  return priv.dataChannel.ordered;
1624
- }
1625
- });
1626
- Object.defineProperty(this, 'maxPacketLifeTime', {
1627
- enumerable: true, configurable: false, get: function get() {
1577
+ } });
1578
+ Object.defineProperty(this, 'maxPacketLifeTime', { enumerable: true, configurable: false, get: function get() {
1628
1579
  return priv.dataChannel.maxPacketLifeTime;
1629
- }
1630
- });
1631
- Object.defineProperty(this, 'protocol', {
1632
- enumerable: true, configurable: false, get: function get() {
1580
+ } });
1581
+ Object.defineProperty(this, 'protocol', { enumerable: true, configurable: false, get: function get() {
1633
1582
  return priv.dataChannel.protocol;
1634
- }
1635
- });
1636
- Object.defineProperty(this, 'negotiated', {
1637
- enumerable: true, configurable: false, get: function get() {
1583
+ } });
1584
+ Object.defineProperty(this, 'negotiated', { enumerable: true, configurable: false, get: function get() {
1638
1585
  return priv.dataChannel.negotiated;
1639
- }
1640
- });
1641
- Object.defineProperty(this, 'id', {
1642
- enumerable: true, configurable: false, get: function get() {
1586
+ } });
1587
+ Object.defineProperty(this, 'id', { enumerable: true, configurable: false, get: function get() {
1643
1588
  return priv.dataChannel.id;
1644
- }
1645
- });
1646
- Object.defineProperty(this, 'priority', {
1647
- enumerable: true, configurable: false, get: function get() {
1589
+ } });
1590
+ Object.defineProperty(this, 'priority', { enumerable: true, configurable: false, get: function get() {
1648
1591
  return priv.dataChannel.priority;
1649
- }
1650
- });
1651
- Object.defineProperty(this, 'readyState', {
1652
- enumerable: true, configurable: false, get: function get() {
1592
+ } });
1593
+ Object.defineProperty(this, 'readyState', { enumerable: true, configurable: false, get: function get() {
1653
1594
  return priv.dataChannel.readyState;
1654
- }
1655
- });
1656
- Object.defineProperty(this, 'bufferedAmount', {
1657
- enumerable: true, configurable: false, get: function get() {
1595
+ } });
1596
+ Object.defineProperty(this, 'bufferedAmount', { enumerable: true, configurable: false, get: function get() {
1658
1597
  return priv.dataChannel.bufferedAmount;
1659
- }
1660
- });
1598
+ } });
1661
1599
  //Read & write
1662
- Object.defineProperty(this, 'bufferedAmountLowThreshold', {
1663
- enumerable: true, configurable: false,
1600
+ Object.defineProperty(this, 'bufferedAmountLowThreshold', { enumerable: true, configurable: false,
1664
1601
  get: function get() {
1665
1602
  return priv.dataChannel.bufferedAmountLowThreshold;
1666
1603
  },
@@ -1668,19 +1605,18 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1668
1605
  return priv.dataChannel.bufferedAmountLowThreshold = bufferedAmountLowThreshold;
1669
1606
  }
1670
1607
  });
1671
- Object.defineProperty(this, 'binaryType', {
1672
- enumerable: true, configurable: false,
1608
+ Object.defineProperty(this, 'binaryType', { enumerable: true, configurable: false,
1673
1609
  get: function get() {
1674
1610
  return priv.dataChannel.bufferedAmount;
1675
1611
  },
1676
1612
  set: function set(binaryType) {
1677
- if (binaryType !== 'blob' && binaryType !== 'arraybuffer') throw new SyntaxError();
1613
+ if (binaryType !== "blob" && binaryType !== "arraybuffer") throw new SyntaxError();
1678
1614
  return priv.binaryType = binaryType;
1679
1615
  }
1680
1616
  });
1681
1617
 
1682
1618
  function createEvent(name) {
1683
- var e = document.createEvent('Event');
1619
+ var e = document.createEvent("Event");
1684
1620
  e.initEvent(name, false, false);
1685
1621
  return e;
1686
1622
  }
@@ -1691,34 +1627,34 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1691
1627
 
1692
1628
  //Set event
1693
1629
  priv.dataChannel.onopen = function () {
1694
- fire('open');
1630
+ fire("open");
1695
1631
  };
1696
1632
  priv.dataChannel.onbufferedamountlow = function () {
1697
- fire('bufferedamountlow');
1633
+ fire("bufferedamountlow");
1698
1634
  };
1699
1635
  priv.dataChannel.onerror = function () {
1700
- fire('error');
1636
+ fire("error");
1701
1637
  };
1702
1638
  priv.dataChannel.onclose = function () {
1703
- fire('close');
1639
+ fire("close");
1704
1640
  };
1705
1641
  priv.dataChannel.onmessage = function (message) {
1706
1642
  //Create event
1707
- var event = createEvent('message');
1643
+ var event = createEvent("message");
1708
1644
 
1709
1645
  //Check if message is binary
1710
- if (typeof message !== 'string') {
1646
+ if (typeof message !== "string") {
1711
1647
  //Create uint array
1712
1648
  var array = new Uint8Array(message);
1713
1649
  //Check binary type
1714
- if (priv.binaryType === 'blob') {
1650
+ if (priv.binaryType === "blob") {
1715
1651
  //Create blob builder
1716
1652
  var builder = new MSBlobBuilder();
1717
1653
  //Append message
1718
1654
  builder.append(array);
1719
1655
  //Get blob
1720
1656
  event.data = builder.getBlob();
1721
- } else if (priv.binaryType === 'arraybuffer') {
1657
+ } else if (priv.binaryType === "arraybuffer") {
1722
1658
  //Get array buffer
1723
1659
  event.data = array.buffer;
1724
1660
  } else return;
@@ -1746,16 +1682,16 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1746
1682
  RTCDataChannel.__proto__ = EventTarget;
1747
1683
 
1748
1684
  // Define Event Handlers
1749
- defineEventAttribute(RTCDataChannel.prototype, 'open');
1750
- defineEventAttribute(RTCDataChannel.prototype, 'bufferedamountlow');
1751
- defineEventAttribute(RTCDataChannel.prototype, 'error');
1752
- defineEventAttribute(RTCDataChannel.prototype, 'close');
1753
- defineEventAttribute(RTCDataChannel.prototype, 'message');
1685
+ defineEventAttribute(RTCDataChannel.prototype, "open");
1686
+ defineEventAttribute(RTCDataChannel.prototype, "bufferedamountlow");
1687
+ defineEventAttribute(RTCDataChannel.prototype, "error");
1688
+ defineEventAttribute(RTCDataChannel.prototype, "close");
1689
+ defineEventAttribute(RTCDataChannel.prototype, "message");
1754
1690
 
1755
1691
  RTCDataChannel.prototype.send = function (data) {
1756
1692
  var self = this;
1757
1693
  //Check state
1758
- if (this.readyState !== 'open') throw new InvalidStateError();
1694
+ if (this.readyState !== "open") throw new InvalidStateError();
1759
1695
 
1760
1696
  try {
1761
1697
  //Check type
@@ -1772,7 +1708,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1772
1708
  } else if (data instanceof ArrayBuffer) {
1773
1709
  //Send it
1774
1710
  this.priv.dataChannel.send(array);
1775
- } else if (typeof data === 'string') {
1711
+ } else if (typeof data === "string") {
1776
1712
  //Send it
1777
1713
  this.priv.dataChannel.send(data);
1778
1714
  } else {
@@ -1787,38 +1723,32 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1787
1723
  this.priv.dataChannel.close();
1788
1724
  };
1789
1725
 
1790
- Object.defineProperty(RTCDataChannel, 'name', {
1791
- enumerable: false,
1792
- configurable: true,
1793
- writable: false,
1794
- value: 'RTCDataChannel'
1795
- });
1726
+ Object.defineProperty(RTCDataChannel, 'name', { enumerable: false, configurable: true, writable: false, value: "RTCDataChannel" });
1796
1727
  Object.defineProperty(RTCDataChannel, 'prototype', { writable: false });
1797
1728
  module.exports = RTCDataChannel;
1798
- }, { './EventTarget.js': 4, './InvalidStateError.js': 5 }],
1799
- 10: [function (require, module, exports) {
1800
- 'use strict';
1729
+ }, { "./EventTarget.js": 4, "./InvalidStateError.js": 5 }], 10: [function (require, module, exports) {
1730
+ "use strict";
1801
1731
 
1802
- var WebRTCProxy = require('./WebRTCProxy.js');
1732
+ var WebRTCProxy = require("./WebRTCProxy.js");
1803
1733
  /*
1804
1734
  interface RTCIceCandidate {
1805
- readonly attribute DOMString candidate;
1806
- readonly attribute DOMString? sdpMid;
1807
- readonly attribute unsigned short? sdpMLineIndex;
1808
- readonly attribute DOMString? foundation;
1809
- readonly attribute RTCIceComponent? component;
1810
- readonly attribute unsigned long? priority;
1811
- readonly attribute DOMString? ip;
1812
- readonly attribute RTCIceProtocol? protocol;
1813
- readonly attribute unsigned short? port;
1814
- readonly attribute RTCIceCandidateType? type;
1815
- readonly attribute RTCIceTcpCandidateType? tcpType;
1816
- readonly attribute DOMString? relatedAddress;
1817
- readonly attribute unsigned short? relatedPort;
1818
- readonly attribute DOMString? usernameFragment;
1819
- RTCIceCandidateInit toJSON();
1735
+ readonly attribute DOMString candidate;
1736
+ readonly attribute DOMString? sdpMid;
1737
+ readonly attribute unsigned short? sdpMLineIndex;
1738
+ readonly attribute DOMString? foundation;
1739
+ readonly attribute RTCIceComponent? component;
1740
+ readonly attribute unsigned long? priority;
1741
+ readonly attribute DOMString? ip;
1742
+ readonly attribute RTCIceProtocol? protocol;
1743
+ readonly attribute unsigned short? port;
1744
+ readonly attribute RTCIceCandidateType? type;
1745
+ readonly attribute RTCIceTcpCandidateType? tcpType;
1746
+ readonly attribute DOMString? relatedAddress;
1747
+ readonly attribute unsigned short? relatedPort;
1748
+ readonly attribute DOMString? usernameFragment;
1749
+ RTCIceCandidateInit toJSON();
1820
1750
  };
1821
- */
1751
+ */
1822
1752
  var RTCIceCandidate = function RTCIceCandidate(iceCandidateInit) {
1823
1753
  if (!iceCandidateInit) throw new TypeError();
1824
1754
 
@@ -1873,76 +1803,48 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1873
1803
  }
1874
1804
 
1875
1805
  //Direct attributes from init
1876
- Object.defineProperty(this, 'candidate', {
1877
- enumerable: true, configurable: false, get: function get() {
1806
+ Object.defineProperty(this, "candidate", { enumerable: true, configurable: false, get: function get() {
1878
1807
  return candidate;
1879
- }
1880
- });
1881
- Object.defineProperty(this, 'sdpMid', {
1882
- enumerable: true, configurable: false, get: function get() {
1808
+ } });
1809
+ Object.defineProperty(this, "sdpMid", { enumerable: true, configurable: false, get: function get() {
1883
1810
  return sdpMid;
1884
- }
1885
- });
1886
- Object.defineProperty(this, 'sdpMLineIndex', {
1887
- enumerable: true, configurable: false, get: function get() {
1811
+ } });
1812
+ Object.defineProperty(this, "sdpMLineIndex", { enumerable: true, configurable: false, get: function get() {
1888
1813
  return sdpMLineIndex;
1889
- }
1890
- });
1891
- Object.defineProperty(this, 'foundation', {
1892
- enumerable: true, configurable: false, get: function get() {
1814
+ } });
1815
+ Object.defineProperty(this, "foundation", { enumerable: true, configurable: false, get: function get() {
1893
1816
  return foundation;
1894
- }
1895
- });
1896
- Object.defineProperty(this, 'component', {
1897
- enumerable: true, configurable: false, get: function get() {
1817
+ } });
1818
+ Object.defineProperty(this, "component", { enumerable: true, configurable: false, get: function get() {
1898
1819
  return component;
1899
- }
1900
- });
1901
- Object.defineProperty(this, 'priority', {
1902
- enumerable: true, configurable: false, get: function get() {
1820
+ } });
1821
+ Object.defineProperty(this, "priority", { enumerable: true, configurable: false, get: function get() {
1903
1822
  return priority;
1904
- }
1905
- });
1906
- Object.defineProperty(this, 'ip', {
1907
- enumerable: true, configurable: false, get: function get() {
1823
+ } });
1824
+ Object.defineProperty(this, "ip", { enumerable: true, configurable: false, get: function get() {
1908
1825
  return ip;
1909
- }
1910
- });
1911
- Object.defineProperty(this, 'protocol', {
1912
- enumerable: true, configurable: false, get: function get() {
1826
+ } });
1827
+ Object.defineProperty(this, "protocol", { enumerable: true, configurable: false, get: function get() {
1913
1828
  return protocol;
1914
- }
1915
- });
1916
- Object.defineProperty(this, 'port', {
1917
- enumerable: true, configurable: false, get: function get() {
1829
+ } });
1830
+ Object.defineProperty(this, "port", { enumerable: true, configurable: false, get: function get() {
1918
1831
  return port;
1919
- }
1920
- });
1921
- Object.defineProperty(this, 'type', {
1922
- enumerable: true, configurable: false, get: function get() {
1832
+ } });
1833
+ Object.defineProperty(this, "type", { enumerable: true, configurable: false, get: function get() {
1923
1834
  return type;
1924
- }
1925
- });
1926
- Object.defineProperty(this, 'tcpType', {
1927
- enumerable: true, configurable: false, get: function get() {
1835
+ } });
1836
+ Object.defineProperty(this, "tcpType", { enumerable: true, configurable: false, get: function get() {
1928
1837
  return tcpType;
1929
- }
1930
- });
1931
- Object.defineProperty(this, 'relatedAddress', {
1932
- enumerable: true, configurable: false, get: function get() {
1838
+ } });
1839
+ Object.defineProperty(this, "relatedAddress", { enumerable: true, configurable: false, get: function get() {
1933
1840
  return relatedAddress;
1934
- }
1935
- });
1936
- Object.defineProperty(this, 'relatedPort', {
1937
- enumerable: true, configurable: false, get: function get() {
1841
+ } });
1842
+ Object.defineProperty(this, "relatedPort", { enumerable: true, configurable: false, get: function get() {
1938
1843
  return relatedPort;
1939
- }
1940
- });
1941
- Object.defineProperty(this, 'usernameFragment', {
1942
- enumerable: true, configurable: false, get: function get() {
1844
+ } });
1845
+ Object.defineProperty(this, "usernameFragment", { enumerable: true, configurable: false, get: function get() {
1943
1846
  return usernameFragment;
1944
- }
1945
- });
1847
+ } });
1946
1848
 
1947
1849
  return this;
1948
1850
  };
@@ -1956,120 +1858,111 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
1956
1858
  };
1957
1859
  };
1958
1860
 
1959
- Object.defineProperty(RTCIceCandidate, 'name', {
1960
- enumerable: false,
1961
- configurable: true,
1962
- writable: false,
1963
- value: 'RTCIceCandidate'
1964
- });
1861
+ Object.defineProperty(RTCIceCandidate, 'name', { enumerable: false, configurable: true, writable: false, value: "RTCIceCandidate" });
1965
1862
  Object.defineProperty(RTCIceCandidate, 'prototype', { writable: false });
1966
1863
  module.exports = RTCIceCandidate;
1967
- }, { './WebRTCProxy.js': 17 }],
1968
- 11: [function (require, module, exports) {
1969
- 'use strict';
1864
+ }, { "./WebRTCProxy.js": 17 }], 11: [function (require, module, exports) {
1865
+ "use strict";
1970
1866
 
1971
1867
  var _extends = Object.assign || function (target) {
1972
1868
  for (var i = 1; i < arguments.length; i++) {
1973
- var source = arguments[i];
1974
- for (var key in source) {
1869
+ var source = arguments[i];for (var key in source) {
1975
1870
  if (Object.prototype.hasOwnProperty.call(source, key)) {
1976
1871
  target[key] = source[key];
1977
1872
  }
1978
1873
  }
1979
- }
1980
- return target;
1874
+ }return target;
1981
1875
  };
1982
1876
 
1983
- var WebRTCProxy = require('./WebRTCProxy.js');
1984
- var MediaStreamTrack = require('./MediaStreamTrack.js');
1985
- var RTCSessionDescription = require('./RTCSessionDescription.js');
1986
- var RTCIceCandidate = require('./RTCIceCandidate.js');
1987
- var RTCRtpSender = require('./RTCRtpSender.js');
1988
- var RTCRtpReceiver = require('./RTCRtpReceiver.js');
1989
- var RTCRtpTransceiver = require('./RTCRtpTransceiver.js');
1990
- var DataChannel = require('./RTCDataChannel.js');
1991
- var InvalidStateError = require('./InvalidStateError.js');
1992
- var EventTarget = require('./EventTarget.js').EventTarget;
1993
- var defineEventAttribute = require('./EventTarget.js').defineEventAttribute;
1877
+ var WebRTCProxy = require("./WebRTCProxy.js");
1878
+ var MediaStreamTrack = require("./MediaStreamTrack.js");
1879
+ var RTCSessionDescription = require("./RTCSessionDescription.js");
1880
+ var RTCIceCandidate = require("./RTCIceCandidate.js");
1881
+ var RTCRtpSender = require("./RTCRtpSender.js");
1882
+ var RTCRtpReceiver = require("./RTCRtpReceiver.js");
1883
+ var RTCRtpTransceiver = require("./RTCRtpTransceiver.js");
1884
+ var DataChannel = require("./RTCDataChannel.js");
1885
+ var InvalidStateError = require("./InvalidStateError.js");
1886
+ var EventTarget = require("./EventTarget.js").EventTarget;
1887
+ var defineEventAttribute = require("./EventTarget.js").defineEventAttribute;
1994
1888
 
1995
1889
  /*
1996
1890
  [Constructor(optional RTCConfiguration configuration),Exposed=Window]
1997
1891
  interface RTCPeerConnection : EventTarget {
1998
- Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options);
1999
- Promise<RTCSessionDescriptionInit> createAnswer(optional RTCAnswerOptions options);
2000
- Promise<void> setLocalDescription(RTCSessionDescriptionInit description);
2001
- readonly attribute RTCSessionDescription? localDescription;
2002
- readonly attribute RTCSessionDescription? currentLocalDescription;
2003
- readonly attribute RTCSessionDescription? pendingLocalDescription;
2004
- Promise<void> setRemoteDescription(RTCSessionDescriptionInit description);
2005
- readonly attribute RTCSessionDescription? remoteDescription;
2006
- readonly attribute RTCSessionDescription? currentRemoteDescription;
2007
- readonly attribute RTCSessionDescription? pendingRemoteDescription;
2008
- Promise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate);
2009
- readonly attribute RTCSignalingState signalingState;
2010
- readonly attribute RTCIceGatheringState iceGatheringState;
2011
- readonly attribute RTCIceConnectionState iceConnectionState;
2012
- readonly attribute RTCPeerConnectionState connectionState;
2013
- readonly attribute boolean? canTrickleIceCandidates;
2014
- static sequence<RTCIceServer> getDefaultIceServers();
2015
- RTCConfiguration getConfiguration();
2016
- void setConfiguration(RTCConfiguration configuration);
2017
- void close();
2018
- attribute EventHandler onnegotiationneeded;
2019
- attribute EventHandler onicecandidate;
2020
- attribute EventHandler onicecandidateerror;
2021
- attribute EventHandler onsignalingstatechange;
2022
- attribute EventHandler oniceconnectionstatechange;
2023
- attribute EventHandler onicegatheringstatechange;
2024
- attribute EventHandler onconnectionstatechange;
1892
+ Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options);
1893
+ Promise<RTCSessionDescriptionInit> createAnswer(optional RTCAnswerOptions options);
1894
+ Promise<void> setLocalDescription(RTCSessionDescriptionInit description);
1895
+ readonly attribute RTCSessionDescription? localDescription;
1896
+ readonly attribute RTCSessionDescription? currentLocalDescription;
1897
+ readonly attribute RTCSessionDescription? pendingLocalDescription;
1898
+ Promise<void> setRemoteDescription(RTCSessionDescriptionInit description);
1899
+ readonly attribute RTCSessionDescription? remoteDescription;
1900
+ readonly attribute RTCSessionDescription? currentRemoteDescription;
1901
+ readonly attribute RTCSessionDescription? pendingRemoteDescription;
1902
+ Promise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate);
1903
+ readonly attribute RTCSignalingState signalingState;
1904
+ readonly attribute RTCIceGatheringState iceGatheringState;
1905
+ readonly attribute RTCIceConnectionState iceConnectionState;
1906
+ readonly attribute RTCPeerConnectionState connectionState;
1907
+ readonly attribute boolean? canTrickleIceCandidates;
1908
+ static sequence<RTCIceServer> getDefaultIceServers();
1909
+ RTCConfiguration getConfiguration();
1910
+ void setConfiguration(RTCConfiguration configuration);
1911
+ void close();
1912
+ attribute EventHandler onnegotiationneeded;
1913
+ attribute EventHandler onicecandidate;
1914
+ attribute EventHandler onicecandidateerror;
1915
+ attribute EventHandler onsignalingstatechange;
1916
+ attribute EventHandler oniceconnectionstatechange;
1917
+ attribute EventHandler onicegatheringstatechange;
1918
+ attribute EventHandler onconnectionstatechange;
2025
1919
  };
2026
1920
  */
2027
1921
 
2028
- var RTCIceTransportPolicy = ['relay', 'all'];
2029
- var RTCBundlePolicy = ['balanced', 'max-compat', 'max-bundle'];
2030
- var RTCRtcpMuxPolicy = ['negotiate', 'require'];
2031
- var RTCIceCredentialType = ['password', 'oauth'];
1922
+ var RTCIceTransportPolicy = ["relay", "all"];
1923
+ var RTCBundlePolicy = ["balanced", "max-compat", "max-bundle"];
1924
+ var RTCRtcpMuxPolicy = ["negotiate", "require"];
1925
+ var RTCIceCredentialType = ["password", "oauth"];
2032
1926
 
2033
1927
  //Check if a value is valid in an enum
2034
1928
  function check(value, valid) {
2035
1929
  for (var i = 0; i < valid.length; ++i) {
2036
1930
  if (valid[i] === value) return;
2037
- }
2038
- throw new TypeError(value + ' not in ' + JSON.stringify(valid));
1931
+ }throw new TypeError(value + " not in " + JSON.stringify(valid));
2039
1932
  }
2040
1933
 
2041
1934
  function checkRange(value, min, max) {
2042
- if (value < min || value > max) throw new TypeError(value + ' not in [' + min + ',' + max + ']');
1935
+ if (value < min || value > max) throw new TypeError(value + " not in [" + min + "," + max + "]");
2043
1936
  }
2044
1937
 
2045
1938
  function checkNotNull(value) {
2046
- if (value === null) throw new TypeError('Null not allowed');
1939
+ if (value === null) throw new TypeError("Null not allowed");
2047
1940
  }
2048
1941
 
2049
1942
  function checkArray(value) {
2050
- if (!Array.isArray(value)) throw new TypeError('Must be an array');
1943
+ if (!Array.isArray(value)) throw new TypeError("Must be an array");
2051
1944
  }
2052
1945
 
2053
1946
  function createRTCConfiguration(configuration) {
2054
1947
  /*
2055
1948
  *
2056
1949
  dictionary RTCConfiguration {
2057
- sequence<RTCIceServer> iceServers;
2058
- RTCIceTransportPolicy iceTransportPolicy = "all";
2059
- RTCBundlePolicy bundlePolicy = "balanced";
2060
- RTCRtcpMuxPolicy rtcpMuxPolicy = "require";
2061
- DOMString peerIdentity;
2062
- sequence<RTCCertificate> certificates;
2063
- [EnforceRange]
2064
- octet iceCandidatePoolSize = 0;
1950
+ sequence<RTCIceServer> iceServers;
1951
+ RTCIceTransportPolicy iceTransportPolicy = "all";
1952
+ RTCBundlePolicy bundlePolicy = "balanced";
1953
+ RTCRtcpMuxPolicy rtcpMuxPolicy = "require";
1954
+ DOMString peerIdentity;
1955
+ sequence<RTCCertificate> certificates;
1956
+ [EnforceRange]
1957
+ octet iceCandidatePoolSize = 0;
2065
1958
  };
2066
1959
  */
2067
1960
  //Set configuration with default values
2068
1961
  var sanitized = _extends({
2069
1962
  iceServers: undefined,
2070
- iceTransportPolicy: 'all',
2071
- bundlePolicy: 'balanced',
2072
- rtcpMuxPolicy: 'require',
1963
+ iceTransportPolicy: "all",
1964
+ bundlePolicy: "balanced",
1965
+ rtcpMuxPolicy: "require",
2073
1966
  iceCandidatePoolSize: 0,
2074
1967
  certificates: undefined
2075
1968
  },
@@ -2093,12 +1986,12 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2093
1986
  */
2094
1987
  //Set defautls
2095
1988
  var iceServer = sanitized.iceServers[i] = _extends({
2096
- credentialType: 'password'
1989
+ credentialType: "password"
2097
1990
  }, sanitized.iceServers[i]);
2098
1991
  //Check it is not null
2099
1992
  checkNotNull(iceServer.urls);
2100
1993
  //If it is a sring fallback
2101
- if (typeof iceServer.urls === 'string')
1994
+ if (typeof iceServer.urls === "string")
2102
1995
  //Arraify
2103
1996
  iceServer.urls = [iceServer.urls];
2104
1997
  checkArray(iceServer.urls);
@@ -2131,85 +2024,62 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2131
2024
  priv.lastAnswer = null;
2132
2025
  priv.isClosed = false;
2133
2026
 
2134
- var signalingState = 'stable';
2135
- var iceGatheringState = 'new';
2136
- var iceConnectionState = 'new';
2137
- var connectionState = 'new';
2027
+ var signalingState = "stable";
2028
+ var iceGatheringState = "new";
2029
+ var iceConnectionState = "new";
2030
+ var connectionState = "new";
2138
2031
 
2139
2032
  //TODO: Implement this
2140
2033
  var canTrickleIceCandidates = null;
2141
2034
 
2142
2035
  function toSessionDescription(sdp) {
2143
- return typeof sdp === 'unknown' ? new RTCSessionDescription(sdp.toArray()) : null;
2036
+ return typeof sdp === "unknown" ? new RTCSessionDescription(sdp.toArray()) : null;
2144
2037
  }
2145
2038
 
2146
2039
  //Define read only properties for each attribute
2147
2040
  //The localDescription attribute must return pendingLocalDescription if it is not null and otherwise it must return currentLocalDescription .
2148
- Object.defineProperty(this, 'localDescription', {
2149
- enumerable: true, configurable: false, get: function get() {
2041
+ Object.defineProperty(this, 'localDescription', { enumerable: true, configurable: false, get: function get() {
2150
2042
  return toSessionDescription(priv.pc.localDescription);
2151
- }
2152
- });
2153
- Object.defineProperty(this, 'currentLocalDescription', {
2154
- enumerable: true, configurable: false, get: function get() {
2043
+ } });
2044
+ Object.defineProperty(this, 'currentLocalDescription', { enumerable: true, configurable: false, get: function get() {
2155
2045
  return toSessionDescription(priv.pc.currentLocalDescription);
2156
- }
2157
- });
2158
- Object.defineProperty(this, 'pendingLocalDescription', {
2159
- enumerable: true, configurable: false, get: function get() {
2046
+ } });
2047
+ Object.defineProperty(this, 'pendingLocalDescription', { enumerable: true, configurable: false, get: function get() {
2160
2048
  return toSessionDescription(priv.pc.pendingLocalDescription);
2161
- }
2162
- });
2049
+ } });
2163
2050
 
2164
- Object.defineProperty(this, 'remoteDescription', {
2165
- enumerable: true, configurable: false, get: function get() {
2051
+ Object.defineProperty(this, 'remoteDescription', { enumerable: true, configurable: false, get: function get() {
2166
2052
  return toSessionDescription(priv.pc.remoteDescription);
2167
- }
2168
- });
2169
- Object.defineProperty(this, 'currentRemoteDescription', {
2170
- enumerable: true, configurable: false, get: function get() {
2053
+ } });
2054
+ Object.defineProperty(this, 'currentRemoteDescription', { enumerable: true, configurable: false, get: function get() {
2171
2055
  return toSessionDescription(priv.pc.currentRemoteDescription);
2172
- }
2173
- });
2174
- Object.defineProperty(this, 'pendingRemoteDescription', {
2175
- enumerable: true, configurable: false, get: function get() {
2056
+ } });
2057
+ Object.defineProperty(this, 'pendingRemoteDescription', { enumerable: true, configurable: false, get: function get() {
2176
2058
  return toSessionDescription(priv.pc.pendingRemoteDescription);
2177
- }
2178
- });
2059
+ } });
2179
2060
 
2180
- Object.defineProperty(this, 'signalingState', {
2181
- enumerable: true, configurable: false, get: function get() {
2061
+ Object.defineProperty(this, 'signalingState', { enumerable: true, configurable: false, get: function get() {
2182
2062
  return signalingState;
2183
- }
2184
- });
2185
- Object.defineProperty(this, 'iceGatheringState', {
2186
- enumerable: true, configurable: false, get: function get() {
2063
+ } });
2064
+ Object.defineProperty(this, 'iceGatheringState', { enumerable: true, configurable: false, get: function get() {
2187
2065
  return iceGatheringState;
2188
- }
2189
- });
2190
- Object.defineProperty(this, 'iceConnectionState', {
2191
- enumerable: true, configurable: false, get: function get() {
2066
+ } });
2067
+ Object.defineProperty(this, 'iceConnectionState', { enumerable: true, configurable: false, get: function get() {
2192
2068
  return iceConnectionState;
2193
- }
2194
- });
2195
- Object.defineProperty(this, 'connectionState', {
2196
- enumerable: true, configurable: false, get: function get() {
2069
+ } });
2070
+ Object.defineProperty(this, 'connectionState', { enumerable: true, configurable: false, get: function get() {
2197
2071
  return connectionState;
2198
- }
2199
- });
2072
+ } });
2200
2073
 
2201
- Object.defineProperty(this, 'canTrickleIceCandidates', {
2202
- enumerable: true, configurable: false, get: function get() {
2074
+ Object.defineProperty(this, 'canTrickleIceCandidates', { enumerable: true, configurable: false, get: function get() {
2203
2075
  return canTrickleIceCandidates;
2204
- }
2205
- });
2076
+ } });
2206
2077
 
2207
2078
  function createEvent(name) {
2208
- var e = document.createEvent('Event');
2079
+ var e = document.createEvent("Event");
2209
2080
  e.initEvent(name, false, false);
2210
2081
  return e;
2211
2082
  }
2212
-
2213
2083
  function fire(name) {
2214
2084
  self.dispatchEvent(createEvent(name));
2215
2085
  }
@@ -2219,10 +2089,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2219
2089
 
2220
2090
  //Event handlers
2221
2091
  priv.pc.onnegotiationneeded = function () {
2222
- fire('negotiationneeded');
2092
+ fire("negotiationneeded");
2223
2093
  };
2224
2094
  priv.pc.onicecandidate = function (candidate, sdpMid, sdpMLineIndex, foundation, component, priority, ip, protocol, port, type, tcpType, relatedAddress, relatedPort, usernameFragment, url) {
2225
- var e = createEvent('icecandidate');
2095
+ var e = createEvent("icecandidate");
2226
2096
  if (candidate) e.candidate = new RTCIceCandidate({
2227
2097
  candidate: candidate,
2228
2098
  sdpMid: sdpMid,
@@ -2245,31 +2115,31 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2245
2115
  self.dispatchEvent(e);
2246
2116
  };
2247
2117
  priv.pc.onicecandidateerror = function () {
2248
- fire('icecandidateerror');
2118
+ fire("icecandidateerror");
2249
2119
  };
2250
2120
  priv.pc.onsignalingstatechange = function (state) {
2251
2121
  signalingState = state;
2252
- fire('signalingstatechange');
2253
- if ('closed' === state) {
2122
+ fire("signalingstatechange");
2123
+ if ("closed" === state) {
2254
2124
  priv.isClosed = true;
2255
2125
  delete priv.pc;
2256
2126
  }
2257
2127
  };
2258
2128
  priv.pc.oniceconnectionstatechange = function (state) {
2259
2129
  iceConnectionState = state;
2260
- fire('iceconnectionstatechange');
2130
+ fire("iceconnectionstatechange");
2261
2131
  };
2262
2132
  priv.pc.onicegatheringstatechange = function (state) {
2263
2133
  iceGatheringState = state;
2264
- fire('icegatheringstatechange');
2134
+ fire("icegatheringstatechange");
2265
2135
  };
2266
2136
  priv.pc.onconnectionstatechange = function (state) {
2267
2137
  connectionState = state;
2268
- fire('connectionState');
2138
+ fire("connectionState");
2269
2139
  };
2270
2140
  priv.pc.onaddstream = function (label) {
2271
2141
  //Create new stream
2272
- var stream = new MediaStream(label);
2142
+ var stream = new MediaStream(null, label);
2273
2143
 
2274
2144
  //Get remote stream tracks
2275
2145
  priv.pc.getRemoteStreamTracks(label, function () {
@@ -2286,7 +2156,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2286
2156
  //For each track in stream
2287
2157
  for (var i = 0; i < mediaStreamTracks.length; ++i) {
2288
2158
  //Create evnet
2289
- var event = createEvent('track');
2159
+ var event = createEvent("track");
2290
2160
  //Add data
2291
2161
  event.track = mediaStreamTracks[i];
2292
2162
  event.receiver = { track: mediaStreamTracks[i] };
@@ -2305,7 +2175,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2305
2175
 
2306
2176
  priv.pc.ondatachannel = function (dataChannel) {
2307
2177
  //Create event
2308
- var event = createEvent('datachannel');
2178
+ var event = createEvent("datachannel");
2309
2179
  //Create datachannel
2310
2180
  event.channel = new DataChannel(dataChannel);
2311
2181
  //Fire event
@@ -2324,14 +2194,14 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2324
2194
  RTCPeerConnection.__proto__ = EventTarget;
2325
2195
 
2326
2196
  // Define Event Handlers
2327
- defineEventAttribute(RTCPeerConnection.prototype, 'negotiationneeded');
2328
- defineEventAttribute(RTCPeerConnection.prototype, 'icecandidate');
2329
- defineEventAttribute(RTCPeerConnection.prototype, 'icecandidateerror');
2330
- defineEventAttribute(RTCPeerConnection.prototype, 'signalingstatechange');
2331
- defineEventAttribute(RTCPeerConnection.prototype, 'iceconnectionstatechange');
2332
- defineEventAttribute(RTCPeerConnection.prototype, 'icegatheringstatechange');
2333
- defineEventAttribute(RTCPeerConnection.prototype, 'connectionstatechange');
2334
- defineEventAttribute(RTCPeerConnection.prototype, 'addtrack');
2197
+ defineEventAttribute(RTCPeerConnection.prototype, "negotiationneeded");
2198
+ defineEventAttribute(RTCPeerConnection.prototype, "icecandidate");
2199
+ defineEventAttribute(RTCPeerConnection.prototype, "icecandidateerror");
2200
+ defineEventAttribute(RTCPeerConnection.prototype, "signalingstatechange");
2201
+ defineEventAttribute(RTCPeerConnection.prototype, "iceconnectionstatechange");
2202
+ defineEventAttribute(RTCPeerConnection.prototype, "icegatheringstatechange");
2203
+ defineEventAttribute(RTCPeerConnection.prototype, "connectionstatechange");
2204
+ defineEventAttribute(RTCPeerConnection.prototype, "addtrack");
2335
2205
 
2336
2206
  RTCPeerConnection.prototype.getConfiguration = function () {
2337
2207
  return this.priv.configuration;
@@ -2350,7 +2220,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2350
2220
  } catch (error) {
2351
2221
  //Launch InvalidModificationError
2352
2222
  var operationError = new Error(error);
2353
- operationError.name = 'InvalidModificationError';
2223
+ operationError.name = "InvalidModificationError";
2354
2224
  operationError.code = 13;
2355
2225
  throw operationError;
2356
2226
  }
@@ -2402,10 +2272,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2402
2272
  var priv = this.priv;
2403
2273
 
2404
2274
  //If description.sdp is the empty string and description.type is "answer" or "pranswer", set description.sdp to lastAnswer.
2405
- if (!description.sdp && ('answer' === description.type || 'pranser' === description.type)) description.sdp = priv.lastAnswer;
2275
+ if (!description.sdp && ("answer" === description.type || "pranser" === description.type)) description.sdp = priv.lastAnswer;
2406
2276
 
2407
2277
  //If description.sdp is the empty string and description.type is "offer", set description.sdp to lastOffer.
2408
- if (!description.sdp && 'offer' === description.type) description.sdp = priv.lastOffer;
2278
+ if (!description.sdp && "offer" === description.type) description.sdp = priv.lastOffer;
2409
2279
 
2410
2280
  return new Promise(function (resolve, reject) {
2411
2281
  if (!priv.pc || priv.isClosed) throw new InvalidStateError();
@@ -2432,7 +2302,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2432
2302
  //1. Let candidate be the method's argument.
2433
2303
  //2. Let connection be the ``[`RTCPeerConnection`](#dom-rtcpeerconnection)`` object on which the method was invoked.
2434
2304
  //3. If both sdpMid and sdpMLineIndex are `null`, return a promise [rejected](#dfn-rejected) with a newly [created](https://www.w3.org/TR/2016/REC-WebIDL-1-20161215/#dfn-create-exception) `TypeError`.
2435
- if (!candidate || typeof candidate.sdpMid !== 'string' && typeof candidate.sdpMLineIndex !== 'number') return Promise.reject(new TypeError());
2305
+ if (!candidate || typeof candidate.sdpMid !== "string" && typeof candidate.sdpMLineIndex !== "number") return Promise.reject(new TypeError());
2436
2306
 
2437
2307
  //4. Return the result of [enqueuing](#enqueue-an-operation) the following steps to connection's operation queue:
2438
2308
  return new Promise(function (resolve, reject) {
@@ -2465,7 +2335,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2465
2335
  } catch (error) {
2466
2336
  //Launch operation error
2467
2337
  var operationError = new Error(error);
2468
- operationError.name = 'OperationError';
2338
+ operationError.name = "OperationError";
2469
2339
  operationError.code = 0;
2470
2340
  throw operationError;
2471
2341
  }
@@ -2483,25 +2353,25 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2483
2353
  };
2484
2354
  /*
2485
2355
  partial interface RTCPeerConnection {
2486
- sequence<RTCRtpSender> getSenders();
2487
- sequence<RTCRtpReceiver> getReceivers();
2488
- sequence<RTCRtpTransceiver> getTransceivers();
2489
- RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams);
2490
- void removeTrack(RTCRtpSender sender);
2491
- RTCRtpTransceiver addTransceiver((MediaStreamTrack or DOMString) trackOrKind, optional RTCRtpTransceiverInit init);
2492
- attribute EventHandler ontrack;
2356
+ sequence<RTCRtpSender> getSenders();
2357
+ sequence<RTCRtpReceiver> getReceivers();
2358
+ sequence<RTCRtpTransceiver> getTransceivers();
2359
+ RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams);
2360
+ void removeTrack(RTCRtpSender sender);
2361
+ RTCRtpTransceiver addTransceiver((MediaStreamTrack or DOMString) trackOrKind, optional RTCRtpTransceiverInit init);
2362
+ attribute EventHandler ontrack;
2493
2363
  };
2494
2364
  */
2495
2365
  RTCPeerConnection.prototype.getSenders = function () {
2496
- throw 'Not implemented';
2366
+ throw "Not implemented";
2497
2367
  };
2498
2368
 
2499
2369
  RTCPeerConnection.prototype.getReceivers = function () {
2500
- throw 'Not implemented';
2370
+ throw "Not implemented";
2501
2371
  };
2502
2372
 
2503
2373
  RTCPeerConnection.prototype.getTransceivers = function () {
2504
- throw 'Not implemented';
2374
+ throw "Not implemented";
2505
2375
  };
2506
2376
 
2507
2377
  RTCPeerConnection.prototype.addTrack = function () {
@@ -2514,10 +2384,10 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2514
2384
  var streams = Array.prototype.slice.call(arguments, 1);
2515
2385
 
2516
2386
  //Ensure that we are attaching to at most 1, as it is not supported in libwebrtc
2517
- if (streams.length > 1) throw new Error('Adding track to more than one stream is not currently supported');
2387
+ if (streams.length > 1) throw new Error("Adding track to more than one stream is not currently supported");
2518
2388
 
2519
2389
  //Get stream label, as it is the only param needed by libwebrtc
2520
- var label = streams.length ? streams[0].id : '';
2390
+ var label = streams.length ? streams[0].id : "";
2521
2391
 
2522
2392
  //Add native track to native object it only needs the stream label not the stream
2523
2393
  var sender = priv.pc.addTrack(track.priv.track, label);
@@ -2548,8 +2418,8 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2548
2418
  };
2549
2419
 
2550
2420
  /*
2551
- * Legacy stream apis
2552
- */
2421
+ * Legacy stream apis
2422
+ */
2553
2423
  RTCPeerConnection.prototype.addStream = function (stream) {
2554
2424
  var tracks = stream.getTracks();
2555
2425
  for (var i = 0; i < tracks.length; ++i) {
@@ -2581,14 +2451,14 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2581
2451
  delete priv.senders[senderId];
2582
2452
  };
2583
2453
 
2584
- defineEventAttribute(RTCPeerConnection.prototype, 'track');
2454
+ defineEventAttribute(RTCPeerConnection.prototype, "track");
2585
2455
 
2586
2456
  /*
2587
2457
  partial interface RTCPeerConnection {
2588
- readonly attribute RTCSctpTransport? sctp;
2589
- RTCDataChannel createDataChannel(USVString label,
2590
- optional RTCDataChannelInit dataChannelDict);
2591
- attribute EventHandler ondatachannel;
2458
+ readonly attribute RTCSctpTransport? sctp;
2459
+ RTCDataChannel createDataChannel(USVString label,
2460
+ optional RTCDataChannelInit dataChannelDict);
2461
+ attribute EventHandler ondatachannel;
2592
2462
  };
2593
2463
  */
2594
2464
  RTCPeerConnection.prototype.createDataChannel = function (label, dataChannelDict) {
@@ -2597,7 +2467,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2597
2467
  if (!priv.pc || priv.isClosed) throw new InvalidStateError();
2598
2468
 
2599
2469
  //Check if we have a string label (can be empty)
2600
- if (typeof label !== 'string') return new TypeError();
2470
+ if (typeof label !== "string") return new TypeError();
2601
2471
 
2602
2472
  //Create native datachannel
2603
2473
  var dataChannel = priv.pc.createDataChannel(label, dataChannelDict);
@@ -2609,45 +2479,28 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2609
2479
  return new DataChannel(dataChannel);
2610
2480
  };
2611
2481
 
2612
- defineEventAttribute(RTCPeerConnection.prototype, 'datachannel');
2482
+ defineEventAttribute(RTCPeerConnection.prototype, "datachannel");
2613
2483
 
2614
- Object.defineProperty(RTCPeerConnection, 'RTCPeerConnection', {
2615
- enumerable: false,
2616
- configurable: true,
2617
- writable: false,
2618
- value: 'RTCPeerConnection'
2619
- });
2484
+ Object.defineProperty(RTCPeerConnection, 'RTCPeerConnection', { enumerable: false, configurable: true, writable: false, value: "RTCPeerConnection" });
2620
2485
  Object.defineProperty(RTCPeerConnection, 'prototype', { writable: false });
2621
2486
  module.exports = RTCPeerConnection;
2622
- }, {
2623
- './EventTarget.js': 4,
2624
- './InvalidStateError.js': 5,
2625
- './MediaStreamTrack.js': 8,
2626
- './RTCDataChannel.js': 9,
2627
- './RTCIceCandidate.js': 10,
2628
- './RTCRtpReceiver.js': 12,
2629
- './RTCRtpSender.js': 13,
2630
- './RTCRtpTransceiver.js': 14,
2631
- './RTCSessionDescription.js': 15,
2632
- './WebRTCProxy.js': 17
2633
- }],
2634
- 12: [function (require, module, exports) {
2487
+ }, { "./EventTarget.js": 4, "./InvalidStateError.js": 5, "./MediaStreamTrack.js": 8, "./RTCDataChannel.js": 9, "./RTCIceCandidate.js": 10, "./RTCRtpReceiver.js": 12, "./RTCRtpSender.js": 13, "./RTCRtpTransceiver.js": 14, "./RTCSessionDescription.js": 15, "./WebRTCProxy.js": 17 }], 12: [function (require, module, exports) {
2635
2488
  'use strict';
2636
2489
 
2637
2490
  /*
2638
2491
  [Exposed=Window]
2639
2492
  interface RTCRtpReceiver {
2640
- readonly attribute MediaStreamTrack track;
2641
- readonly attribute RTCDtlsTransport? transport;
2642
- readonly attribute RTCDtlsTransport? rtcpTransport;
2643
- // Feature at risk
2644
- static RTCRtpCapabilities getCapabilities(DOMString kind);
2645
- RTCRtpParameters getParameters();
2646
- sequence<RTCRtpContributingSource> getContributingSources();
2647
- sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
2648
- Promise<RTCStatsReport> getStats();
2649
- };
2650
- */
2493
+ readonly attribute MediaStreamTrack track;
2494
+ readonly attribute RTCDtlsTransport? transport;
2495
+ readonly attribute RTCDtlsTransport? rtcpTransport;
2496
+ // Feature at risk
2497
+ static RTCRtpCapabilities getCapabilities(DOMString kind);
2498
+ RTCRtpParameters getParameters();
2499
+ sequence<RTCRtpContributingSource> getContributingSources();
2500
+ sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
2501
+ Promise<RTCStatsReport> getStats();
2502
+ };
2503
+ */
2651
2504
 
2652
2505
  var RTCRtpReceiver = function RTCRtpReceiver(track) {
2653
2506
  var priv = {
@@ -2699,22 +2552,21 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2699
2552
  });
2700
2553
  Object.defineProperty(RTCRtpReceiver, 'prototype', { writable: false });
2701
2554
  module.exports = RTCRtpReceiver;
2702
- }, {}],
2703
- 13: [function (require, module, exports) {
2555
+ }, {}], 13: [function (require, module, exports) {
2704
2556
  'use strict';
2705
2557
 
2706
2558
  /*
2707
2559
  [Exposed=Window]
2708
2560
  interface RTCRtpSender {
2709
- readonly attribute MediaStreamTrack? track;
2710
- readonly attribute RTCDtlsTransport? transport;
2711
- readonly attribute RTCDtlsTransport? rtcpTransport;
2712
- // Feature at risk
2713
- static RTCRtpCapabilities getCapabilities(DOMString kind);
2714
- Promise<void> setParameters(optional RTCRtpParameters parameters);
2715
- RTCRtpParameters getParameters();
2716
- Promise<void> replaceTrack(MediaStreamTrack? withTrack);
2717
- Promise<RTCStatsReport> getStats();
2561
+ readonly attribute MediaStreamTrack? track;
2562
+ readonly attribute RTCDtlsTransport? transport;
2563
+ readonly attribute RTCDtlsTransport? rtcpTransport;
2564
+ // Feature at risk
2565
+ static RTCRtpCapabilities getCapabilities(DOMString kind);
2566
+ Promise<void> setParameters(optional RTCRtpParameters parameters);
2567
+ RTCRtpParameters getParameters();
2568
+ Promise<void> replaceTrack(MediaStreamTrack? withTrack);
2569
+ Promise<RTCStatsReport> getStats();
2718
2570
  };
2719
2571
  */
2720
2572
 
@@ -2725,72 +2577,60 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2725
2577
  track: track
2726
2578
  };
2727
2579
 
2728
- Object.defineProperty(this, 'track', {
2729
- enumerable: true, configurable: false, get: function get() {
2580
+ Object.defineProperty(this, 'track', { enumerable: true, configurable: false, get: function get() {
2730
2581
  return priv.track;
2731
- }
2732
- });
2733
- Object.defineProperty(this, 'transport', {
2734
- enumerable: true, configurable: false, get: function get() {
2735
- new Error('Not supported yet');
2736
- }
2737
- });
2738
- Object.defineProperty(this, 'rtcpTransport', {
2739
- enumerable: true, configurable: false, get: function get() {
2740
- new Error('Not supported yet');
2741
- }
2742
- });
2582
+ } });
2583
+ Object.defineProperty(this, 'transport', { enumerable: true, configurable: false, get: function get() {
2584
+ new Error("Not supported yet");
2585
+ } });
2586
+ Object.defineProperty(this, 'rtcpTransport', { enumerable: true, configurable: false, get: function get() {
2587
+ new Error("Not supported yet");
2588
+ } });
2743
2589
 
2744
2590
  return this;
2745
2591
  };
2746
2592
 
2747
2593
  RTCRtpSender.prototype.getCapabilities = function () {
2748
- throw new Error('Not supported yet');
2594
+ throw new Error("Not supported yet");
2749
2595
  };
2750
2596
 
2751
2597
  RTCRtpSender.prototype.setParameters = function () {
2752
- throw new Error('Not supported yet');
2598
+ throw new Error("Not supported yet");
2753
2599
  };
2754
2600
 
2755
2601
  RTCRtpSender.prototype.getParameters = function () {
2756
- throw new Error('Not supported yet');
2602
+ throw new Error("Not supported yet");
2757
2603
  };
2758
2604
 
2759
2605
  RTCRtpSender.prototype.replaceTrack = function () {
2760
- throw new Error('Not supported yet');
2606
+ throw new Error("Not supported yet");
2761
2607
  };
2762
2608
 
2763
2609
  RTCRtpSender.prototype.getStats = function () {
2764
- throw new Error('Not supported yet');
2610
+ throw new Error("Not supported yet");
2765
2611
  };
2766
2612
 
2767
- Object.defineProperty(RTCRtpSender, 'name', {
2768
- enumerable: false,
2769
- configurable: true,
2770
- writable: false,
2771
- value: 'RTCRtpSender'
2772
- });
2613
+ Object.defineProperty(RTCRtpSender, 'name', { enumerable: false, configurable: true, writable: false, value: "RTCRtpSender" });
2773
2614
  Object.defineProperty(RTCRtpSender, 'prototype', { writable: false });
2774
2615
  module.exports = RTCRtpSender;
2775
- }, {}],
2776
- 14: [function (require, module, exports) {
2777
- 'use strict';
2616
+ }, {}], 14: [function (require, module, exports) {
2617
+ "use strict";
2778
2618
 
2779
2619
  /*
2780
- [Exposed=Window]
2781
- interface RTCRtpTransceiver {
2782
- readonly attribute DOMString? mid;
2783
- [SameObject]
2784
- readonly attribute RTCRtpSender sender;
2785
- [SameObject]
2786
- readonly attribute RTCRtpReceiver receiver;
2787
- readonly attribute boolean stopped;
2788
- attribute RTCRtpTransceiverDirection direction;
2789
- readonly attribute RTCRtpTransceiverDirection? currentDirection;
2790
- void stop();
2791
- void setCodecPreferences(sequence<RTCRtpCodecCapability> codecs);
2792
- };
2793
- */
2620
+ [Exposed=Window]
2621
+ interface RTCRtpTransceiver {
2622
+ readonly attribute DOMString? mid;
2623
+ [SameObject]
2624
+ readonly attribute RTCRtpSender sender;
2625
+ [SameObject]
2626
+ readonly attribute RTCRtpReceiver receiver;
2627
+ readonly attribute boolean stopped;
2628
+ attribute RTCRtpTransceiverDirection direction;
2629
+ readonly attribute RTCRtpTransceiverDirection? currentDirection;
2630
+ void stop();
2631
+ void setCodecPreferences(sequence<RTCRtpCodecCapability> codecs);
2632
+ };
2633
+ */
2794
2634
 
2795
2635
  var RTPRtcTransceiver = function RTPRtcTransceiver(sender, receiver) {
2796
2636
 
@@ -2800,40 +2640,29 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2800
2640
  sender: sender,
2801
2641
  receiver: receiver,
2802
2642
  stopped: false,
2803
- direction: 'sendrecv',
2804
- currentDirection: 'sendrecv'
2643
+ direction: "sendrecv",
2644
+ currentDirection: "sendrecv"
2805
2645
  };
2806
2646
 
2807
2647
  //Read only
2808
- Object.defineProperty(this, 'mid', {
2809
- enumerable: true, configurable: false, get: function get() {
2648
+ Object.defineProperty(this, "mid", { enumerable: true, configurable: false, get: function get() {
2810
2649
  return priv.mid;
2811
- }
2812
- });
2813
- Object.defineProperty(this, 'sender', {
2814
- enumerable: true, configurable: false, get: function get() {
2650
+ } });
2651
+ Object.defineProperty(this, "sender", { enumerable: true, configurable: false, get: function get() {
2815
2652
  return priv.sender;
2816
- }
2817
- });
2818
- Object.defineProperty(this, 'receiver', {
2819
- enumerable: true, configurable: false, get: function get() {
2653
+ } });
2654
+ Object.defineProperty(this, "receiver", { enumerable: true, configurable: false, get: function get() {
2820
2655
  return priv.receiver;
2821
- }
2822
- });
2823
- Object.defineProperty(this, 'stopped', {
2824
- enumerable: true, configurable: false, get: function get() {
2656
+ } });
2657
+ Object.defineProperty(this, "stopped", { enumerable: true, configurable: false, get: function get() {
2825
2658
  return priv.stopped;
2826
- }
2827
- });
2828
- Object.defineProperty(this, 'currentDirection', {
2829
- enumerable: true, configurable: false, get: function get() {
2659
+ } });
2660
+ Object.defineProperty(this, "currentDirection", { enumerable: true, configurable: false, get: function get() {
2830
2661
  return priv.currentDirection;
2831
- }
2832
- });
2662
+ } });
2833
2663
 
2834
2664
  //REad and write
2835
- Object.defineProperty(this, 'currentDirection', {
2836
- enumerable: true, configurable: false,
2665
+ Object.defineProperty(this, "currentDirection", { enumerable: true, configurable: false,
2837
2666
  get: function get() {
2838
2667
  return priv.direction;
2839
2668
  },
@@ -2846,34 +2675,28 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2846
2675
  };
2847
2676
 
2848
2677
  RTPRtcTransceiver.prototype.stop = function () {
2849
- throw 'Not implemented';
2678
+ throw "Not implemented";
2850
2679
  };
2851
2680
 
2852
- Object.defineProperty(RTPRtcTransceiver, 'name', {
2853
- enumerable: false,
2854
- configurable: true,
2855
- writable: false,
2856
- value: 'RTPRtcTransceiver'
2857
- });
2681
+ Object.defineProperty(RTPRtcTransceiver, 'name', { enumerable: false, configurable: true, writable: false, value: "RTPRtcTransceiver" });
2858
2682
  Object.defineProperty(RTPRtcTransceiver, 'prototype', { writable: false });
2859
2683
  module.exports = RTPRtcTransceiver;
2860
- }, {}],
2861
- 15: [function (require, module, exports) {
2862
- 'use strict';
2684
+ }, {}], 15: [function (require, module, exports) {
2685
+ "use strict";
2863
2686
 
2864
2687
  /*
2865
- [Constructor(RTCSessionDescriptionInit descriptionInitDict),
2866
- Exposed=Window]
2688
+ [Constructor(RTCSessionDescriptionInit descriptionInitDict),
2689
+ Exposed=Window]
2867
2690
  interface RTCSessionDescription {
2868
- readonly attribute RTCSdpType type;
2869
- readonly attribute DOMString sdp;
2870
- [Default] object toJSON();
2691
+ readonly attribute RTCSdpType type;
2692
+ readonly attribute DOMString sdp;
2693
+ [Default] object toJSON();
2871
2694
  };
2872
- dictionary RTCSessionDescriptionInit {
2873
- required RTCSdpType type;
2874
- DOMString sdp = "";
2695
+ dictionary RTCSessionDescriptionInit {
2696
+ required RTCSdpType type;
2697
+ DOMString sdp = "";
2875
2698
  };
2876
- */
2699
+ */
2877
2700
 
2878
2701
  function RTCSessionDescription(descriptionInitDict) {
2879
2702
  //Get values from dictionary
@@ -2882,16 +2705,12 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2882
2705
  var sdp = Array.isArray(descriptionInitDict) ? descriptionInitDict[1] : descriptionInitDict.sdp;
2883
2706
 
2884
2707
  //Direct attributes from init
2885
- Object.defineProperty(this, 'type', {
2886
- enumerable: true, configurable: false, get: function get() {
2708
+ Object.defineProperty(this, "type", { enumerable: true, configurable: false, get: function get() {
2887
2709
  return type;
2888
- }
2889
- });
2890
- Object.defineProperty(this, 'sdp', {
2891
- enumerable: true, configurable: false, get: function get() {
2710
+ } });
2711
+ Object.defineProperty(this, "sdp", { enumerable: true, configurable: false, get: function get() {
2892
2712
  return sdp;
2893
- }
2894
- });
2713
+ } });
2895
2714
 
2896
2715
  return this;
2897
2716
  };
@@ -2903,17 +2722,11 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2903
2722
  };
2904
2723
  };
2905
2724
 
2906
- Object.defineProperty(RTCSessionDescription, 'name', {
2907
- enumerable: false,
2908
- configurable: true,
2909
- writable: false,
2910
- value: 'RTCSessionDescription'
2911
- });
2725
+ Object.defineProperty(RTCSessionDescription, 'name', { enumerable: false, configurable: true, writable: false, value: "RTCSessionDescription" });
2912
2726
  Object.defineProperty(RTCSessionDescription, 'prototype', { writable: false });
2913
2727
  module.exports = RTCSessionDescription;
2914
- }, {}],
2915
- 16: [function (require, module, exports) {
2916
- 'use strict';
2728
+ }, {}], 16: [function (require, module, exports) {
2729
+ "use strict";
2917
2730
 
2918
2731
  // This obvserver checks when a video element has been set a srcObj
2919
2732
 
@@ -2925,7 +2738,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2925
2738
  }
2926
2739
  });
2927
2740
 
2928
- var CLASSID = 'CLSID:B8E874D9-72BA-4E54-B59B-3513081DF516';
2741
+ var CLASSID = "CLSID:B8E874D9-72BA-4E54-B59B-3513081DF516";
2929
2742
 
2930
2743
  function VideoRenderer(video) {
2931
2744
  var srcObject;
@@ -2934,7 +2747,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2934
2747
  this.video = video;
2935
2748
 
2936
2749
  //Create a new video renderer object
2937
- var object = this.object = document.createElement('object');
2750
+ var object = this.object = document.createElement("object");
2938
2751
  //Set csid
2939
2752
  this.object.classid = CLASSID;
2940
2753
  //Apped it hidden
@@ -2974,9 +2787,9 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2974
2787
  //Attach resize event
2975
2788
  object.onresize = function () {
2976
2789
  //Create event
2977
- var event = document.createEvent('Event');
2790
+ var event = document.createEvent("Event");
2978
2791
  //Init metadata or resize event
2979
- event.initEvent(needsmetadata ? 'loadedmetadata' : 'resize', false, false);
2792
+ event.initEvent(needsmetadata ? "loadedmetadata" : "resize", false, false);
2980
2793
  //Dispatch it
2981
2794
  video.dispatchEvent(event);
2982
2795
  //No more medatada event
@@ -2996,16 +2809,12 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
2996
2809
  });
2997
2810
 
2998
2811
  // Override properties
2999
- Object.defineProperty(video, 'videoWidth', {
3000
- enumerable: true, configurable: true, get: function get() {
2812
+ Object.defineProperty(video, 'videoWidth', { enumerable: true, configurable: true, get: function get() {
3001
2813
  return object.videoWidth;
3002
- }
3003
- });
3004
- Object.defineProperty(video, 'videoHeight', {
3005
- enumerable: true, configurable: true, get: function get() {
2814
+ } });
2815
+ Object.defineProperty(video, 'videoHeight', { enumerable: true, configurable: true, get: function get() {
3006
2816
  return object.videoHeight;
3007
- }
3008
- });
2817
+ } });
3009
2818
  //TODO: clone attributes
3010
2819
  }
3011
2820
 
@@ -3060,8 +2869,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
3060
2869
  };
3061
2870
 
3062
2871
  module.exports = VideoRenderer;
3063
- }, {}],
3064
- 17: [function (require, module, exports) {
2872
+ }, {}], 17: [function (require, module, exports) {
3065
2873
  'use strict';
3066
2874
 
3067
2875
  var browser = require('detect-browser').detect();
@@ -3079,8 +2887,7 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
3079
2887
  }
3080
2888
 
3081
2889
  module.exports = WebRTCProxy;
3082
- }, { 'detect-browser': 18 }],
3083
- 18: [function (require, module, exports) {
2890
+ }, { "detect-browser": 18 }], 18: [function (require, module, exports) {
3084
2891
  (function (process) {
3085
2892
  /**
3086
2893
  # detect-browser
@@ -3195,7 +3002,6 @@ var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbo
3195
3002
  parseUserAgent: parseUserAgent
3196
3003
  };
3197
3004
  }).call(this, require('_process'));
3198
- }, { '_process': 2, 'os': 1 }]
3199
- }, {}, [3])(3);
3005
+ }, { "_process": 2, "os": 1 }] }, {}, [3])(3);
3200
3006
  });
3201
3007
  //# sourceMappingURL=webrtc-ie-shim.js.map