Error: VideoJS is not defined
Source File: http://video.d7x.dev/sites/video.d7x.dev/modules/media-players/videojs/t...
Line: 12
Browser FF5 (OSX)
Drupal 7.7
Video JS 7.x-1.3
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | videojs-js_order-1235452-7.patch | 1.41 KB | bradjones1 |
Comments
Comment #1
drupa11y commentedLibrary: video-js-2.0.2
Comment #2
drupa11y commentedError is also for latest git-checkout & 7.x-dev.
Comment #3
drupa11y commentedOn pages with a cck-file or video-field and a file ".mov" (h264 codec), player is displayed black and with a file ".m4v", no player is visible I get the following notice:
Notice: Undefined offset: 0 in template_preprocess_videojs() (line 78 of /Applications/MAMP/htdocs/drupal-7.x/sites/video.d7x.dev/modules/media-players/videojs/includes/videojs.theme.inc).
With a file ".mp4" no notice is displayed.
Comment #4
drupa11y commentedpost #3 is for latest git checkout
Comment #5
gagarine commented#3 #4 has nothing to do with this issue.
This error arrive because VideoJS.setupAllWhenReady(); need to be done *after* video.js is loaded. Check in the .module the function videojs_add();
Btw for one line I think it will be better to add the JS inline instead of loading a external file.
Her mine. I don't make a patch now because I think stuff has to be rewrite differently.
Comment #6
gagarine commentedSome explanation... test with js aggregation off.
This script:
has to come *after* this one:
Comment #7
bradjones1Try this patch.
Comment #8
Jorrit commentedFixed in 7.x-1.x.