WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
Works Perfectly (8 posts)

5 stars
  1. Adam
    Member
    Posted 1 year ago #

    Don't know why @shawn00m was having so many issues. All I needed was an MP4 (easy to convert formats at http://online-convert.com).

    As for ease of use... don't use shortcodes... re-think your CMS, and always (ALWAYS) use Advanced Custom Fields ( http://wordpress.org/extend/plugins/advanced-custom-fields/ ). Clients will then be able to upload a video file or choose a video file from the Media Library via a "File" field type.

    This plugin will now be used on every project I do! Thanks a bunch!

  2. shawn00m
    Member
    Posted 1 year ago #

    What was I having so many issues with?

  3. Adam
    Member
    Posted 1 year ago #

  4. shawn00m
    Member
    Posted 1 year ago #

    So you were able to use Advanced Custom Fields as the way to upload the video file?

  5. Adam
    Member
    Posted 1 year ago #

    I did (and do) use Advanced Custom Fields to upload video files. This requires knowledge of custom templates and some PHP (which you may already have... I don't know your knowledge level).

  6. mrdb
    Member
    Posted 1 year ago #

    Hey @Adam, would you be so kind and offer some advice on how one would go about using ACF with this plug-in so shortcodes would no longer be needed. I have very good technical skills but limited php knowledge. I would love to be able to add a video from my media library or upload a new video directly into a post or page utilising the videojs plugin without having to use shortcodes. Much appreciated.

  7. Adam
    Member
    Posted 1 year ago #

    @mrdb - Using ACF, you'd have to first create a custom field in which the video file will be added, and also a poster (still) image custom field for the video. After that, the theme template where that field will be called will need some PHP code placed into it:

    <?php $k++; ?>
    <?php echo do_shortcode('[video id="videojs-'.$k.'" mp4="'.get_sub_field('your_acf_video_file_field').'" poster="'.get_sub_field('your_acf_video_file_poster').'"]'); ?>

    You're basically using a native WP function (do_shortcode) to call the VideoJS plugin's video shortcode within a theme template.

    Need some more info on ACF? Visit the ACF Resources page.

  8. mrdb
    Member
    Posted 1 year ago #

    Thanks Adam, appreciate your efforts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.