@flashphoner/websdk 2.0.203 → 2.0.208

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.
Files changed (34) hide show
  1. package/docTemplate/README.md +1 -1
  2. package/examples/demo/sip/phone/phone.js +7 -10
  3. package/examples/demo/streaming/hls-player/hls-player.html +1 -4
  4. package/examples/demo/streaming/hls-player/hls-player.js +19 -1
  5. package/examples/demo/streaming/hls-player/player-page.html +1 -1
  6. package/examples/demo/streaming/hls-player/video-js.css +142 -51
  7. package/examples/demo/streaming/hls-player/video.js +27294 -20390
  8. package/examples/demo/streaming/hls-player/video.min.js +27 -0
  9. package/examples/demo/streaming/media_devices_manager/manager.js +29 -6
  10. package/examples/demo/streaming/media_devices_manager/media_device_manager.html +7 -0
  11. package/examples/demo/streaming/screen-sharing/screen-sharing.html +1 -1
  12. package/examples/demo/streaming/screen-sharing/screen-sharing.js +1 -1
  13. package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.css +23 -0
  14. package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.html +76 -0
  15. package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.js +356 -0
  16. package/flashphoner-no-flash.js +20 -20
  17. package/flashphoner-no-flash.min.js +2 -2
  18. package/flashphoner-no-webrtc.js +18 -18
  19. package/flashphoner-no-webrtc.min.js +1 -1
  20. package/flashphoner-no-wsplayer.js +21 -21
  21. package/flashphoner-no-wsplayer.min.js +2 -2
  22. package/flashphoner-room-api.js +7 -7
  23. package/flashphoner-room-api.min.js +2 -2
  24. package/flashphoner-temasys-flash-websocket-without-adapterjs.js +20 -20
  25. package/flashphoner-temasys-flash-websocket.js +20 -20
  26. package/flashphoner-temasys-flash-websocket.min.js +1 -1
  27. package/flashphoner-webrtc-only.js +18 -18
  28. package/flashphoner-webrtc-only.min.js +1 -1
  29. package/flashphoner.js +21 -21
  30. package/flashphoner.min.js +2 -2
  31. package/package.json +1 -1
  32. package/src/flashphoner-core.js +4 -4
  33. package/src/webrtc-media-provider.js +3 -3
  34. package/examples/demo/streaming/hls-player/videojs-hls.min.js +0 -27
@@ -371,7 +371,7 @@ process.umask = function () {
371
371
 
372
372
  },{}],4:[function(require,module,exports){
373
373
  (function (setImmediate){(function (){
374
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
374
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
375
375
 
376
376
  (function (root) {
377
377
  // Store setTimeout reference so promise-polyfill will be unaffected by
@@ -2434,7 +2434,7 @@ module.exports = function (window, edgeVersion) {
2434
2434
  /* eslint-env node */
2435
2435
  'use strict'; // SDP helpers.
2436
2436
 
2437
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2437
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2438
2438
 
2439
2439
  var SDPUtils = {}; // Generate an alphanumeric identifier for cname or mids.
2440
2440
  // TODO: use UUIDs instead? https://gist.github.com/jed/982883
@@ -4467,7 +4467,7 @@ function adapterFactory() {
4467
4467
  /* eslint-env node */
4468
4468
  'use strict';
4469
4469
 
4470
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
4470
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
4471
4471
 
4472
4472
  Object.defineProperty(exports, "__esModule", {
4473
4473
  value: true
@@ -5392,7 +5392,7 @@ function shimGetDisplayMedia(window, getSourceId) {
5392
5392
  /* eslint-env node */
5393
5393
  'use strict';
5394
5394
 
5395
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
5395
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
5396
5396
 
5397
5397
  Object.defineProperty(exports, "__esModule", {
5398
5398
  value: true
@@ -5651,7 +5651,7 @@ function shimGetUserMedia(window, browserDetails) {
5651
5651
  /* eslint-env node */
5652
5652
  'use strict';
5653
5653
 
5654
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
5654
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
5655
5655
 
5656
5656
  Object.defineProperty(exports, "__esModule", {
5657
5657
  value: true
@@ -6400,7 +6400,7 @@ function shimGetUserMedia(window) {
6400
6400
  /* eslint-env node */
6401
6401
  'use strict';
6402
6402
 
6403
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
6403
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
6404
6404
 
6405
6405
  Object.defineProperty(exports, "__esModule", {
6406
6406
  value: true
@@ -6853,7 +6853,7 @@ function shimGetDisplayMedia(window, preferredMediaSource) {
6853
6853
  /* eslint-env node */
6854
6854
  'use strict';
6855
6855
 
6856
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
6856
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
6857
6857
 
6858
6858
  Object.defineProperty(exports, "__esModule", {
6859
6859
  value: true
@@ -6955,7 +6955,7 @@ function shimGetUserMedia(window, browserDetails) {
6955
6955
  */
6956
6956
  'use strict';
6957
6957
 
6958
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
6958
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
6959
6959
 
6960
6960
  Object.defineProperty(exports, "__esModule", {
6961
6961
  value: true
@@ -7406,7 +7406,7 @@ function shimAudioContext(window) {
7406
7406
  /* eslint-env node */
7407
7407
  'use strict';
7408
7408
 
7409
- function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
7409
+ function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
7410
7410
 
7411
7411
  Object.defineProperty(exports, "__esModule", {
7412
7412
  value: true
@@ -8443,7 +8443,7 @@ module.exports = constants;
8443
8443
  },{}],39:[function(require,module,exports){
8444
8444
  'use strict';
8445
8445
 
8446
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
8446
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8447
8447
 
8448
8448
  var _require = require('uuid'),
8449
8449
  uuid_v1 = _require.v1;
@@ -9041,7 +9041,7 @@ var createSession = function createSession(options) {
9041
9041
  mediaProviders: Object.keys(MediaProvider),
9042
9042
  keepAlive: keepAlive,
9043
9043
  authToken: authToken,
9044
- clientVersion: "2.0.203",
9044
+ clientVersion: "2.0.208",
9045
9045
  clientOSVersion: window.navigator.appVersion,
9046
9046
  clientBrowserVersion: window.navigator.userAgent,
9047
9047
  msePacketizationVersion: 2,
@@ -9267,7 +9267,7 @@ var createSession = function createSession(options) {
9267
9267
  * @param {HTMLElement} options.localVideoDisplay Div element local video should be displayed in
9268
9268
  * @param {HTMLElement} options.remoteVideoDisplay Div element remote video should be displayed in
9269
9269
  * @param {Object=} options.custom User provided custom object that will be available in REST App code
9270
- * @param {Array<string>=} options.stripCodecs Array of codecs which should be stripped from SDP (WebRTC)
9270
+ * @param {string=} options.stripCodecs Comma separated strings of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
9271
9271
  * @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
9272
9272
  * @param {Array<string>=} options.sipHeaders Array of custom SIP headers
9273
9273
  * @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
@@ -9529,7 +9529,7 @@ var createSession = function createSession(options) {
9529
9529
  * @param {Boolean=} answerOptions.receiveAudio Receive audio
9530
9530
  * @param {Boolean=} answerOptions.receiveVideo Receive video
9531
9531
  * @param {String=} answerOptions.constraints Answer call with constraints
9532
- * @param {Array<string>=} answerOptions.stripCodecs Array of codecs which should be stripped from SDP (WebRTC)
9532
+ * @param {String=} answerOptions.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
9533
9533
  * @param {Array<string>=} answerOptions.sipSDP Array of custom SDP params (ex. bandwidth (b=))
9534
9534
  * @param {Array<string>=} answerOptions.sipHeaders Array of custom SIP headers
9535
9535
  * @param {sdpHook} sdpHook The callback that handles sdp from the server
@@ -10109,7 +10109,7 @@ var createSession = function createSession(options) {
10109
10109
  * @param {HTMLElement} options.display Div element stream should be displayed in
10110
10110
  * @param {Object=} options.custom User provided custom object that will be available in REST App code
10111
10111
  * @param {Integer} [options.flashBufferTime=0] Specifies how long to buffer messages before starting to display the stream (Flash-only)
10112
- * @param {Array<string>=} options.stripCodecs Array of codecs which should be stripped from SDP (WebRTC)
10112
+ * @param {String=} options.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "H264,PCMA,PCMU,G722")
10113
10113
  * @param {string=} options.rtmpUrl Rtmp url stream should be forwarded to
10114
10114
  * @param {Object=} options.mediaConnectionConstraints Stream specific constraints for underlying RTCPeerConnection
10115
10115
  * @param {Boolean=} options.flashShowFullScreenButton Show full screen button in flash
@@ -11859,7 +11859,7 @@ module.exports = {
11859
11859
  },{}],41:[function(require,module,exports){
11860
11860
  'use strict';
11861
11861
 
11862
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
11862
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11863
11863
 
11864
11864
  var browserDetails = require('webrtc-adapter')["default"].browserDetails;
11865
11865
 
@@ -12346,7 +12346,7 @@ var createConnection = function createConnection(options) {
12346
12346
  if (report.type == 'outbound-rtp') {
12347
12347
  fillStatObject(result.outboundStream, report);
12348
12348
 
12349
- if (report.mediaType == 'video') {
12349
+ if (report.mediaType == 'video' && localVideo != undefined && localVideo != null) {
12350
12350
  var vSettings = localVideo.srcObject.getVideoTracks()[0].getSettings();
12351
12351
  result.outboundStream[report.mediaType].height = vSettings.height;
12352
12352
  result.outboundStream[report.mediaType].width = vSettings.width;
@@ -12354,7 +12354,7 @@ var createConnection = function createConnection(options) {
12354
12354
  } else if (report.type == 'inbound-rtp') {
12355
12355
  fillStatObject(result.inboundStream, report);
12356
12356
 
12357
- if (report.mediaType == 'video' && remoteVideo != undefined) {
12357
+ if (report.mediaType == 'video' && remoteVideo != undefined && remoteVideo != null) {
12358
12358
  result.inboundStream[report.mediaType].height = remoteVideo.videoHeight;
12359
12359
  result.inboundStream[report.mediaType].width = remoteVideo.videoWidth;
12360
12360
  }
@@ -12527,7 +12527,7 @@ var createConnection = function createConnection(options) {
12527
12527
  clonedConstraints.video.mediaSource = source;
12528
12528
  }
12529
12529
 
12530
- if (window.chrome && woExtension) {
12530
+ if (woExtension) {
12531
12531
  getScreenDeviceIdWoExtension(clonedConstraints).then(function (screenSharingConstraints) {
12532
12532
  navigator.mediaDevices.getDisplayMedia(screenSharingConstraints).then(function (stream) {
12533
12533
  processScreenStream(stream, resolve);