Skip to content

Commit

Permalink
Apply PR #19 from GitHub #WCS-4239
Browse files Browse the repository at this point in the history
  • Loading branch information
flashphoner committed Sep 24, 2024
1 parent c2fd6d4 commit 1dee47a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flashphoner-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,8 @@ var createSession = function (options) {
if (!localVideo && mediaProvider.getVideoElement) {
localVideo = mediaProvider.getVideoElement(display);
}
if (localVideo) {
// PR #19 from GitHub to prevent Sentry issue #WCS-4239
if (localVideo && localVideo.srcObject) {
localVideo.srcObject.getAudioTracks().forEach((track) => {
let device = track.label;
if (device === "MediaStreamAudioDestinationNode" && mediaProvider.getAudioSourceDevice) {
Expand Down

0 comments on commit 1dee47a

Please sign in to comment.