@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.
@@ -12271,7 +12271,8 @@ var createSession = function (options) {
12271
12271
  if (!localVideo && mediaProvider.getVideoElement) {
12272
12272
  localVideo = mediaProvider.getVideoElement(display);
12273
12273
  }
12274
- if (localVideo) {
12274
+ // PR #19 from GitHub to prevent Sentry issue #WCS-4239
12275
+ if (localVideo && localVideo.srcObject) {
12275
12276
  localVideo.srcObject.getAudioTracks().forEach((track) => {
12276
12277
  let device = track.label;
12277
12278
  if (device === "MediaStreamAudioDestinationNode" && mediaProvider.getAudioSourceDevice) {