muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.

Home Page:https://media-chrome.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ResizeObserver loop completed with undelivered notifications

mmvsk opened this issue · comments

In some conditions, media-chrome use of ResizeObserver ends up throwing the following error:

loop completed with undelivered notifications

The exact error message may depend on the browser (here I'm using Chrome 118), and the issue is known as seen in a Mux Player test comments:

Media Chrome uses a ResizeObserver which ends up throwing in Firefox and Safari in some cases so we want to catch those. It is supposedly not a blocker if this error is thrown. Safari also has some weird script error being thrown, so, we want to catch it to. This unblocks a bunch of tests from running properly.

In normal conditions, this error can be dismissed as it doesn't really affect anything, however when developing with React and Webpack, it is catched and the following message is displayed:

media-chrome-error