Page 1 of 1

Responsive video

Posted: Fri Mar 01, 2019 5:40 pm
by bastingse
Hi Folks,

Searching a lot these days to get youtube video's include responsive without result.
But today i find the solution to get this done on a easy way!

http://fitvidsjs.com/

You can download jquery.fitvids.js over there and then add this to your template:

Code: Select all

      <script src="jquery.fitvids.js"></script>
      <script>
        // Basic FitVids Test
        $(".container").fitVids();
        // Custom selector and No-Double-Wrapping Prevention Test
        $(".container").fitVids({ customSelector: "iframe[src^='http://socialcam.com']"});
      </script>
It works perfect!!
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?

Re: Responsive video

Posted: Sat Mar 02, 2019 11:31 am
by lck
bastingse wrote:
Fri Mar 01, 2019 5:40 pm
Maybe somebody is able to create a plugin for it, or deliver the jquery file as standard in the cmsimple package?
There is similar with privacy notice:
VideoPrivacy
YouTube_Privacy