WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[Plugin: VideoJS - HTML5 Video Player for WordPress] 3.0.1 self hosted issues (3 posts)

  1. robertbmirth
    Member
    Posted 2 years ago #

    In the self hosted add_videojs_header you have

    $plugin_dir = plugin_dir_path( __FILE__ );
    echo '
    <link href="' . $plugin_dir . 'videojs/video-js.min.css" rel="stylesheet">
    <script src="' . $plugin_dir . 'video.min.js"></script>
    ';

    it should be

    $plugin_dir = plugin_dir_url( __FILE__ );
    echo '
    <link href="' . $plugin_dir . 'videojs/video-js.min.css" rel="stylesheet">
    <script src="' . $plugin_dir . 'videojs/video.min.js"></script>
    ';
    }

    Using the plugin_dir_path is going to get the script tag to look like <script src="var/www/..."> which isn't going to work, and your video.min.js file is also in your videojs folder (subsequently, you can move it out of the folder). Thought you should know.

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

  2. Dustin Lammiman
    Member
    Plugin Author

    Posted 2 years ago #

    Yup, my mistake. I had a few other people complaining about this as well. Thanks for taking the time to point out the exact problem though, that is always appreciated. I just pushed an update.

  3. Ian Dunn
    Member
    Posted 1 year ago #

    I'm still getting mixed-content warnings in Chrome because VideoJS is loading the SWF file from the CDN. I posted some code to fix it in this thread.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic