Author Topic: Audio Toaster  (Read 2085 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Audio Toaster
« on: March 24, 2022, 04:39:28 PM »
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, 04:34:14 AM

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Audio Toaster
« Reply #1 on: March 24, 2022, 05:06:07 PM »
You could just do it through javascript itself.

After you call the popupToast method:

[code]
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();


[/code]