Thank you for fixing the problem. I downloaded the new Powerpac version. No problem with the test app. Unfortunately the error persisted in my main program. I tried to identify the parts of my program that could be causing the error but to no avail. I could not find a single culprit but using the complete program always triggered the same message:
this.rs etc. I still don't have a satisfactory explanation but I have found a solution. By using a series of three 'timeswitches' (var fct = function() etc. with a 200 ms delay) I found, by trial and error, that I could make everything work as planned. So in general terms you could say my program calls all sorts of complex functions that for some reason have an adverse effect on your
playBetween system.
I am well aware of the Chrome problem. You may recall we discussed it here.
https://pgsoftwaretools.com/forum/viewtopic.php?t=325&#p1278 Since then there has been an additional development. If you load a video in Chrome like this
tbfunction_htmlVideoLoader("screen", "youtube", false, "", "continuous", "", "", "", "", fileName); the video 'spins' (the example in your reply above illustrates this if you click on play in Chrome). I have found that by changing
continuous to
"" this behavior is rectified. So for Chrome I load the video without
continuous and invite the user to click on the YouTube button. Once the video has been started like this the restrictions are lifted so I stop the video and reload it this time using
continuous.
If I understand correctly from the information here
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes the problem is not necessarily specifically YouTube related but more to do with the fact that the video source is on a different server?
John
UPDATEI spoke too soon.
this.rs is undefined is still there when I use the system for Chrome described above.

I cannot figure out why.