I have created a Component where you can click an icon to play a youtube video in a modal.
It works as it should, except when I have the Developer Tools open and close the modal. Then I see a lot of warnings/errors and a counter that just keeps on counting:
The error message is:
Uncaught (in promise) DOMException: Failed to load because no supported source was found.
And the warning with the counter says:
www-widgetapi.js:1200 The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events
It can be replicated here: https://filecamp.com/video-test-july8-2023/
I have found that it has something to do with the Video > Controls > Advanced setting:
If I uncheck the Advanced checkbox, the problem disappears. But I would like to have the full-screen controls to be displayed as well

Any ideas on what to do?