WordPress.org

Ready to get started?Download WordPress

Forums

SublimeVideo - HTML5 Video Player
[resolved] Responsive Video Option/Shortcode? (4 posts)

  1. ZainB
    Member
    Posted 1 year ago #

    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 (640x360).

    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.

    http://wordpress.org/extend/plugins/sublimevideo-official/

  2. ZainB
    Member
    Posted 1 year ago #

    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! ;)

  3. ZainB
    Member
    Posted 1 year ago #

    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. :)

  4. toddbenton
    Member
    Posted 6 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic