First video on lesson don't work

How to fix error with video player(youtube)

window.onYouTubeIframeAPIReady.resolve is not a function
at window.onYouTubeIframeAPIReady (VideoModule.445543cbf45955d6980f.6ae797ea7313.js:1)

Player just stuck like this:

But when I click on next lesson in this section, video working and when i back to first lesson, video working

Hi @Chack, we’ve got the same problem. It turned out that a problem was with the GTM script, that we added to a main template. The GTM initialization blocked the video player loading. We’ve solved it by adding 1 second Timeout for GTM initialization.
I suppose the same problem may occur with other analytics scripts.

1 Like

Thanks, man!
I think add it to issue list or it fixed on other versions?

@Glib_Glugovskiy
Hello, how do I add the timeout to the script or could you share with us how the change you made was?