@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashphoner/websdk",
3
- "version": "2.0.248",
3
+ "version": "2.0.249",
4
4
  "description": "Official Flashphoner WebCallServer WebSDK package",
5
5
  "main": "./src/flashphoner-core.js",
6
6
  "types": "./src/flashphoner-core.d.ts",
@@ -2897,7 +2897,8 @@ var createSession = function (options) {
2897
2897
  if (!localVideo && mediaProvider.getVideoElement) {
2898
2898
  localVideo = mediaProvider.getVideoElement(display);
2899
2899
  }
2900
- if (localVideo) {
2900
+ // PR #19 from GitHub to prevent Sentry issue #WCS-4239
2901
+ if (localVideo && localVideo.srcObject) {
2901
2902
  localVideo.srcObject.getAudioTracks().forEach((track) => {
2902
2903
  let device = track.label;
2903
2904
  if (device === "MediaStreamAudioDestinationNode" && mediaProvider.getAudioSourceDevice) {