I’m using the Cloudflare Stream API player and when calling
.play() in Safari I’m sometimes getting the following error:
TypeError: e.play is not a function. (In 'e.play()', 'e.play' is undefined)
It seems like it’s happening most of the time when calling
.play() too early after loading the page, but I don’t see any event I can use to tell whether Cloudflare is fully ready or not?
Is there a way to detect when Cloudflare is ready, i.e.
.play is NOT undefined?
The same code is working every time in Chrome.