[Plugin: VideoJS – HTML5 Video Player for WordPress] 3.0.1 self hosted issues
-
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://ww.wp.xz.cn/extend/plugins/videojs-html5-video-player-for-wordpress/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘[Plugin: VideoJS – HTML5 Video Player for WordPress] 3.0.1 self hosted issues’ is closed to new replies.