Can't make toast notification audio loop more than twice RRS feed

  • Question

  • I've got a class library that sends off notification toast warnings, and I need that warning to loop audio until I actually wake up and dismiss it.

    So far I've come up with this:

                var toast = @"<?xml version='1.0' encoding='utf-8' ?>
                                        <binding template='ToastGeneric'>
                                            <text id='1'>"  + acc.AccountName
                                                            + " triggered at "
                                                            + DateTime.UtcNow.ToString("HH:mm:ss")
                                                            + " UTC" +
                                            "</text>" +
                                        "</binding>" +
                                    "</visual>" +
                                    "<audio src='ms-winsoundevent:Notification.Looping.Call3' loop='true' silent='false'/>" +
                                        "<actions>" +
                                            "<action activationType='system' arguments='dismiss' content='' />" +
                                        "</actions>" +

    This does send the notification, but the audio only loops twice (with some pretty weak sounds too), then stops without my interaction. I need an "alarm clock from h***" type solution. Anyone?



    Thursday, March 3, 2016 12:19 AM