@flashphoner/websdk 2.0.206 → 2.0.207

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashphoner/websdk",
3
- "version": "2.0.206",
3
+ "version": "2.0.207",
4
4
  "description": "Official Flashphoner WebCallServer WebSDK package",
5
5
  "main": "./src/flashphoner-core.js",
6
6
  "types": "./src/flashphoner-core.d.ts",
@@ -534,7 +534,7 @@ var createSession = function (options) {
534
534
  mediaProviders: Object.keys(MediaProvider),
535
535
  keepAlive: keepAlive,
536
536
  authToken:authToken,
537
- clientVersion: "2.0.206",
537
+ clientVersion: "2.0.207",
538
538
  clientOSVersion: window.navigator.appVersion,
539
539
  clientBrowserVersion: window.navigator.userAgent,
540
540
  msePacketizationVersion: 2,
@@ -417,14 +417,14 @@ var createConnection = function (options) {
417
417
  if (!report.isRemote) {
418
418
  if (report.type == 'outbound-rtp') {
419
419
  fillStatObject(result.outboundStream, report);
420
- if (report.mediaType == 'video') {
420
+ if (report.mediaType == 'video' && localVideo != undefined && localVideo != null) {
421
421
  var vSettings = localVideo.srcObject.getVideoTracks()[0].getSettings();
422
422
  result.outboundStream[report.mediaType].height = vSettings.height;
423
423
  result.outboundStream[report.mediaType].width = vSettings.width;
424
424
  }
425
425
  } else if (report.type == 'inbound-rtp') {
426
426
  fillStatObject(result.inboundStream, report);
427
- if (report.mediaType == 'video' && remoteVideo != undefined) {
427
+ if (report.mediaType == 'video' && remoteVideo != undefined && remoteVideo != null) {
428
428
  result.inboundStream[report.mediaType].height = remoteVideo.videoHeight;
429
429
  result.inboundStream[report.mediaType].width = remoteVideo.videoWidth;
430
430
  }