Async embed of Cloudflare Stream videos


#1

We managed to implement an async component to load our Cloudflare Stream videos. All good for the first video.

But after the user clicks to open the second video, the fact we are calling once more the embed JS file (which I think it’s not optimal) makes it throw an error:

Uncaught Error: only one instance of babel-polyfill is allowed

How can we manipulate the API of CloudflareStream embed JS or accomplish the async embed of videos?


Cloudflare Stream Beta Feedback