Author Topic: Audio Toaster  (Read 443 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Audio Toaster
« on: March 25, 2022, 01:39:28 AM »
Hi,

Another question with toaster popup, is it possible to play audio when toaster popup.  Any parameter to enable it?

genesys.wwe.service.system.popupToast({
                        title: "Alert Message",
                        iconUrl: msgURL,
                        subject: "Testing",
                        message: "Click Yes/No",
                        buttons: buttonName,
                        buttonShowDismiss: false
                    }, succeeded, failed);

Thanks,
Kumar

Marked as best answer by genesys_kumar on April 12, 2022, 01:34:14 PM

Offline hsujdik

  • Sr. Member
  • ****
  • Posts: 483
  • Karma: 17
Re: Audio Toaster
« Reply #1 on: March 25, 2022, 02:06:07 AM »
You could just do it through javascript itself.

After you call the popupToast method:

Code: [Select]
genesys.wwe.service.system.popupToast({
                        title: "Alert Message",
                        iconUrl: msgURL,
                        subject: "Testing",
                        message: "Click Yes/No",
                        buttons: buttonName,
                        buttonShowDismiss: false
                    });

// Here you place a code to play the audio, for example:
new Audio('https://www.your-domain.com/your-audio-file.mp3').play();