Hi,
I've been playing around with the HTML5video2 plugin (
https://www.dokuwiki.org/plugin:html5video2) and I have a question about Javascript.
I'm trying to add the ability to jump to a current time in the video.
In ../plugins/html5video/script.js I have the following:
/* DOKUWIKI:include script/video.min.js */
jQuery(document).ready(function() {
var myPlayer = videojs("videoPlayerID1_html5_api"); // that's the id of the <video> tag generated by the plug in
function_that calls_currentTime() {
// no need to bore you with the code
};
});
I keep on getting "videojs is not defined in js.php".
Which hints that either the lib isn't being included properly which it looks like it is, or maybe document.ready isn't working the way I expect it to within dokuwiki.
One thing I will look into is that videojs() works for the version provided with HTML5video2. I tested the code with a newer version on video.js on a blank HTML page and everything worked fine.
The is simple enough that it should be easy to solve but I must be making a wrong assumption somewhere.