@flashphoner/websdk 2.0.248 → 2.0.249

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.
@@ -12621,7 +12621,8 @@ var createSession = function createSession(options) {
12621
12621
  if (!localVideo && mediaProvider.getVideoElement) {
12622
12622
  localVideo = mediaProvider.getVideoElement(display);
12623
12623
  }
12624
- if (localVideo) {
12624
+ // PR #19 from GitHub to prevent Sentry issue #WCS-4239
12625
+ if (localVideo && localVideo.srcObject) {
12625
12626
  localVideo.srcObject.getAudioTracks().forEach(function (track) {
12626
12627
  var device = track.label;
12627
12628
  if (device === "MediaStreamAudioDestinationNode" && mediaProvider.getAudioSourceDevice) {
@@ -19376,7 +19376,8 @@ var createSession = function createSession(options) {
19376
19376
  if (!localVideo && mediaProvider.getVideoElement) {
19377
19377
  localVideo = mediaProvider.getVideoElement(display);
19378
19378
  }
19379
- if (localVideo) {
19379
+ // PR #19 from GitHub to prevent Sentry issue #WCS-4239
19380
+ if (localVideo && localVideo.srcObject) {
19380
19381
  localVideo.srcObject.getAudioTracks().forEach(function (track) {
19381
19382
  var device = track.label;
19382
19383
  if (device === "MediaStreamAudioDestinationNode" && mediaProvider.getAudioSourceDevice) {