javascript – Reload page after lockscreen


Good morning everyone,
I am using the js plug-in ytplayer on a website to play videos in the background via the API.

This works wonderfully, only I have some problems under ios.

If I use the back button to get back to the main or if my device is locked and the page is still open after unlocking or if I push safari to the background and open it again, the video does not start automatically, I have to do a refresh. On Windows and Android this works fine.

Reloading the page after back I solved, but is there any way to also do a reload when I open Safari with the page already loaded or after my device is unlocked?

Thank you so much in advance, really need your help.