Skip to content

Commit

Permalink
For participantNotification sound issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
BhumiSalat committed Aug 29, 2024
1 parent 8e277f9 commit 259416e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/meetingContainer/MeetingContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,22 +484,26 @@ const MeetingContainer = () => {
const _handleParticipantJoined = (data) => {
if (showJoinNotificationRef.current) {
const { displayName } = data;
if (notificationSoundEnabled) {
new Audio(`https://static.videosdk.live/prebuilt/notification.mp3`).play();
}
if (participantNotificationAlertsEnabled) {
enqueueSnackbar(`${displayName} joined the meeting`, {});
}
if (participantNotificationAlertsEnabled) {
if (notificationSoundEnabled) {
new Audio(
`https://static.videosdk.live/prebuilt/notification.mp3`
).play();
}
enqueueSnackbar(`${displayName} joined the meeting`, {});
}
}
};

const _handleParticipantLeft = (data) => {
const { displayName } = data;
if (notificationSoundEnabled) {
new Audio(`https://static.videosdk.live/prebuilt/notification.mp3`).play();
}
if (participantNotificationAlertsEnabled) {
enqueueSnackbar(`${displayName} left the meeting`, {});
if (notificationSoundEnabled) {
new Audio(
`https://static.videosdk.live/prebuilt/notification.mp3`
).play();
}
enqueueSnackbar(`${displayName} left the meeting`, {});
}
};

Expand Down

0 comments on commit 259416e

Please sign in to comment.