From: Gary Cunningham-L. <ga...@cu...> - 2017-10-24 02:36:21
|
Hi, There's already a solution built in to Tiki. You can make video displays responsive by just activating "fitvid.js" on the Features admin page, under the Interface tab (tiki-admin.php?page=features#contentadmin_features-interface). -- Gary On 10/24/2017 6:44 AM, Torsten wrote: > Hello everybody, > > I just thought that others might have or have had the same problem as me > trying to display videos responsive and some of you might still be > looking for a solution to display videos automatically adapted to the > viewport and width of the browser. > > Whilst researching for a solution, I just today stumbled over two nice > videos explaining how to make youtube videos (or videos embedded with > iframes in general) responsive by wrapping the iframe (or the > PluginYoutube of Tiki) in a div, adding a class to it and defining a few > lines of CSS. The effort is negligibly and the effect is the same for > embedded videos as the img-responsive class has for images. > > As well-behaved Tiki community members do, I have instantly documented here: > > https://doc.tiki.org/PluginYouTube#Responsive_YouTube_video > > Best regards, > Torsten > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > TikiWiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > |