YouTube API CMS Collection


I’m testing out the YouTube api script to add a redirect to a video once it’s finished playing, on a static page using a HTML Code Embed - this works fine and redirects the video.

I have created a CMS Collection that has several different videos all needing a redirect set up after they have finished playing using Youtube’s API script.

Using a Rich Text Block > HTML Embed field in the cms, then placing the YouTube script into this. I then use the multi-reference field in another CMS Collection to pull in the API

BUT… It doesn’t display the video on the frontend

Has anyone had any experience using YouTubes API in CMS Collections? as mention before it work fine on a static page.

Thank you