• Resolved ZainB

    (@zainb)


    Hi,

    The player seems to be working well using the SV button, and I can confirm that this is also working in WP 3.5.1 (for me anyway).

    The only question is, how do I make the video responsive? At the moment, it’s using a fixed width and height (640×360).

    Is there an attribute that can be added to the shortcode, or is there something I’m currently missing?

    Thanks in advance for any help.

    https://www.ads-software.com/extend/plugins/sublimevideo-official/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ZainB

    (@zainb)

    Quick Hack for anyone interested in making the inserted videos work with a Responsive theme.

    1. Open the “sublimeVideo-official” plugin folder
    2. find the “class-sublimevideo-shortcodes.php” file to edit
    3. on line 38, add the data-settings='autoresize:fit' part to the video tag.
    4. save the file

    That works for me for the moment and makes the videos fit to the size of the content area.

    It would be nice to see this as a dropdown option in the plugin in future! ??

    Thread Starter ZainB

    (@zainb)

    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. ??

    This was a big help to me. I looked at the documentation on Sublime’s website but it doesn’t say anything about the WordPress plugin and shortcodes. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Responsive Video Option/Shortcode?’ is closed to new replies.