Planned
Last Updated: 10 Sep 2021 12:46 by ADMIN
Scheduled for R3 2021 SP1
Paul King
Created on: 10 Sep 2021 09:33
Category: Notification
Type: Bug Report
0
JavaScript error is thrown then multiple RadNotification instances with enabled audio are shown

JavaScript error is thrown then multiple RadNotification instances with enabled audio are shown.

Error message:

[Intervention] Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence. See crbug.com/1144736#c27

1 comment
ADMIN
Vessy
Posted on: 10 Sep 2021 10:10

Hello,

Until this issue is fixed, the faced error can be avoided by adding a similar overwrite to the page holding the Notification:

            <script>
                Telerik.Web.UI.RadNotification.prototype.dispose = function () {
                    //stop timers
                    this._stopTimer("_updateTimer");
                    this._stopTimer("_showTimer");
                    //cancel delay
                    this.cancelAutoCloseDelay();
                    //detach handlers
                    this._registerPopupHandlers(false);
                    this._createTouchScrollExtender(false);

                    if (this._popupBehavior)
                        this._popupBehavior.dispose();

                    var popup = this.get_popupElement();

                    if (Sys && Sys.WebForms) {
                        //fix for ajax update
                        var prm = Sys.WebForms.PageRequestManager.getInstance();
                        if (prm && prm.get_isInAsyncPostBack())
                            $telerik.disposeElement(popup);
                    }

                    if (popup && popup.parentNode)
                        popup.parentNode.removeChild(popup);

                    if (this._audioElement) {
                        this._audioElement.parentNode.removeChild(this._audioElement)
                    }

                    Telerik.Web.UI.RadNotification.callBaseMethod(this, "dispose");
                }
            </script>

 

 

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.