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

  1. robertbmirth
    Posted 4 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.


  2. Dustin Lammiman
    Plugin Author

    Posted 4 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
    Posted 3 years 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

  • Video.js - HTML5 Video Player for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic