@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.
@@ -10166,7 +10166,7 @@ var createSession = function (options) {
10166
10166
  mediaProviders: Object.keys(MediaProvider),
10167
10167
  keepAlive: keepAlive,
10168
10168
  authToken:authToken,
10169
- clientVersion: "2.0.206",
10169
+ clientVersion: "2.0.207",
10170
10170
  clientOSVersion: window.navigator.appVersion,
10171
10171
  clientBrowserVersion: window.navigator.userAgent,
10172
10172
  msePacketizationVersion: 2,
@@ -14262,14 +14262,14 @@ var createConnection = function (options) {
14262
14262
  if (!report.isRemote) {
14263
14263
  if (report.type == 'outbound-rtp') {
14264
14264
  fillStatObject(result.outboundStream, report);
14265
- if (report.mediaType == 'video') {
14265
+ if (report.mediaType == 'video' && localVideo != undefined && localVideo != null) {
14266
14266
  var vSettings = localVideo.srcObject.getVideoTracks()[0].getSettings();
14267
14267
  result.outboundStream[report.mediaType].height = vSettings.height;
14268
14268
  result.outboundStream[report.mediaType].width = vSettings.width;
14269
14269
  }
14270
14270
  } else if (report.type == 'inbound-rtp') {
14271
14271
  fillStatObject(result.inboundStream, report);
14272
- if (report.mediaType == 'video' && remoteVideo != undefined) {
14272
+ if (report.mediaType == 'video' && remoteVideo != undefined && remoteVideo != null) {
14273
14273
  result.inboundStream[report.mediaType].height = remoteVideo.videoHeight;
14274
14274
  result.inboundStream[report.mediaType].width = remoteVideo.videoWidth;
14275
14275
  }