Forum Academy Marketplace Showcase Pricing Features

Video Source Dynamic

Is it possible to set the video source in a video element dynamically. ie I want to load a YouTube Video , I set the source in the element to YouTube. Next I would like to load a Vimeo video, I do not want to create a second video element that represents Vimeo, I would like to change the already existing element to accept a different source.

Can I do that?


Yes, definitely possible! I currently do this with Vimeo. You just need to set up an HTML element with the Vimeo embed code. The embed code for each video is the same except for the unique ID of the video. So just change that section of the code to be dynamic – “This video’s Vimeo ID” – and then use the database/workflows to change codes.

This topic was automatically closed after 70 days. New replies are no longer allowed.