Permalink
Browse files

Fixed a bug in self-hosted

* Fixed a bug with the self-hosted option.
* Updated self-hosted files to Video.js 3.2.0.
  • Loading branch information...
1 parent 42a80e3 commit 8c1e547e7ea49b0f7eb35f8b1216aa73a249a8ff unknown committed Apr 9, 2012
Showing with 5,152 additions and 9 deletions.
  1. +6 −1 readme.txt
  2. +4 −5 video-js.php
  3. +41 −0 videojs/captions.vtt
  4. +30 −0 videojs/demo.html
  5. +499 −0 videojs/video-js.css
  6. +1 −1 videojs/video-js.min.css
  7. BIN videojs/video-js.png
  8. +4,569 −0 videojs/video.js
  9. +2 −2 videojs/video.min.js
View
@@ -4,7 +4,7 @@ Donate link: http://videojs.com/
Tags: html5, video, player, javascript
Requires at least: 2.7
Tested up to: 3.3.1
-Stable tag: 3.0.1
+Stable tag: 3.2.0
Video.js is the most widely used HTML5 Video Player available. It allows you to embed video in your post or page using HTML5.
@@ -88,6 +88,11 @@ The values set here will be the default values for all videos, unless you specif
== Changelog ==
+= 3.2.0 =
+
+* Fixed a bug with the self-hosted option.
+* Updated self-hosted files to Video.js 3.2.0.
+
= 3.0.1 =
* Added an options page to set default values for you video players.
View
@@ -1,14 +1,14 @@
<?php
/**
* @package Video.js
- * @version 3.0.1
+ * @version 3.2.0
*/
/*
Plugin Name: Video.js - HTML5 Video Player for WordPress
Plugin URI: http://videojs.com/
Description: A video plugin for WordPress built on the widely used Video.js HTML5 video player library. Allows you to embed video in your post or page using HTML5 with Flash fallback support for non-HTML5 browsers.
Author: <a href="http://steveheffernan.com">Steve Heffernan</a>, <a href="http://www.nosecreekweb.ca">Dustin Lammiman</a>
-Version: 3.0.1
+Version: 3.2.0
*/
$plugin_dir = plugin_dir_path( __FILE__ );
@@ -26,10 +26,9 @@ function add_videojs_header(){
<script src="http://vjs.zencdn.net/c/video.js"></script>
';
} else { //use the self hosted version
- $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>
+ <link href="' . plugins_url( 'videojs/video-js.min.css' , __FILE__ ) . '" rel="stylesheet">
+ <script src="' . plugins_url( 'videojs/video.min.js' , __FILE__ ) . '"></script>
';
}
}
View
@@ -0,0 +1,41 @@
+WEBVTT
+
+00:00.700 --> 00:04.110
+Captions describe all relevant audio for the hearing impaired.
+[ Heroic music playing for a seagull ]
+
+00:04.500 --> 00:05.000
+[ Splash!!! ]
+
+00:05.100 --> 00:06.000
+[ Sploosh!!! ]
+
+00:08.000 --> 00:09.225
+[ Splash...splash...splash splash splash ]
+
+00:10.525 --> 00:11.255
+[ Splash, Sploosh again ]
+
+00:13.500 --> 00:14.984
+Dolphin: eeeEEEEEeeee!
+
+00:14.984 --> 00:16.984
+Dolphin: Squawk! eeeEEE?
+
+00:25.000 --> 00:28.284
+[ A whole ton of splashes ]
+
+00:29.500 --> 00:31.000
+Mine. Mine. Mine.
+
+00:34.300 --> 00:36.000
+Shark: Chomp
+
+00:36.800 --> 00:37.900
+Shark: CHOMP!!!
+
+00:37.861 --> 00:41.193
+EEEEEEOOOOOOOOOOWHALENOISE
+
+00:42.593 --> 00:45.611
+[ BIG SPLASH ]
View
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Video.js | HTML5 Video Player</title>
+
+ <!-- Chang URLs to wherever Video.js files will be hosted -->
+ <link href="video-js.css" rel="stylesheet" type="text/css">
+ <!-- video.js must be in the <head> for older IEs to work. -->
+ <script src="video.js"></script>
+
+ <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
+ <script>
+ _V_.options.flash.swf = "video-js.swf";
+ </script>
+
+
+</head>
+<body>
+
+ <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
+ poster="http://video-js.zencoder.com/oceans-clip.png"
+ data-setup="{}">
+ <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
+ <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
+ <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
+ <track kind="captions" src="captions.vtt" srclang="en" label="English" />
+ </video>
+
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 8c1e547

Please sign in to comment.