Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119638

ZainB on "[Plugin: SublimeVideo - HTML5 Video Player] Responsive Video Option/Shortcode?"

$
0
0

Skip the hack. There's another way, although it's not obvious and isn't properly outlined in the documentation!

Basically, it's possible to add any "data-setting" attributes (e.g. data-settings="initial-overlay-enable:false; volume-enable:false; autoresize:fit"), but you have to drop the "data-" part off and add it to the shortcode.

So basically, in the shortcode, just add settings="autoresize:fit" to the shortcode.

e.g. [sublimevideo poster="image.jpg" src1="videoSD.mp4" src2="(hd)videoHD.mp4" width="640" height="360" settings="autoresize:fit"]

Important: If you also notice, additional settings can be added into the "data-settings" but you must separate them using semi-colons.

Hope that clears up some confusion for other plugin users. Also hope the documentation is updated slighty. :)


Viewing all articles
Browse latest Browse all 119638

Trending Articles