Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module doesn't work if you use latest version 3 of the Video.js library, because there is no function VideoJS.setupAllWhenReady(). I had to use version 2.0.3 from GitHub to get things going.
Comment | File | Size | Author |
---|---|---|---|
#16 | videojs-v3-1402846-16.patch | 57.42 KB | bradjones1 |
#13 | videojs-v3-1402846-13.patch | 57.37 KB | bradjones1 |
#2 | videojs-v3-1402846-2.patch | 2.89 KB | bradjones1 |
#1 | videojs-v3-1402846-1.patch | 55.53 KB | bradjones1 |
Comments
Comment #1
bradjones1Here's my first shot at an implementation for VideoJS 3. There's a few API changes, plus a simplification of the skinning system. I have shed the Drupal config options for player theming for now, though it'd be easy enough to put back in. This is working on my local dev with VideoJS 3.0.7.
Comment #2
bradjones1One more (in addition to, not in replace of) patch to get rid of unnecessary flash fallback, since version 3 comes with its own and auto-detects its media.
Comment #3
bradjones1I'd think because this is related to an external library API change this would qualify for a 2.x (or 3.x??) version of the module, to make it clear which version it plays nice with?
Comment #4
Smenzo CreditAttribution: Smenzo commentedI downloaded the latest 7.x-1.x-dev.tar.gz from the project page and tried to apply the patch in #1 but it failed.
Any idea what I'm doing wrong? I'd love to get this patch commited in to the project.
Comment #5
arisaves CreditAttribution: arisaves commentedI will do such a happy dance when this is implemented. Wish I had the know-how to outfit that patch for D6.
Comment #6
bradjones1@Smenzo - it applies cleanly for me if you do
patch -p1 < videojs-v3-1402846-1.patch
- try that?Not sure why git is choking on the diff.
Comment #7
Jorrit CreditAttribution: Jorrit commentedbradjones1: please only post complete patches, not incremental patches. Your patch also adds information to the info file that should not be there.
The patch looks OK. As I said in the 6.x issue, I think it is best to start a new version of the module. People that do not want to update to VideoJS 3 can keep using v1 of the module.
Comment #8
bradjones1@Jorrit - would you prefer a tarball? I've done a bit more work on this and agree it's probably easier to start a new branch.
Comment #9
Jorrit CreditAttribution: Jorrit commentedNo, I meant that it is better to provide complete patches as opposed to incremental patches. If you have an updated patch, feel free to post it here.
Comment #10
SuperRookie CreditAttribution: SuperRookie commentedI'm not sure where to place my problem, but no matter what version of VideoJS I use, the flash fallback in Internet Explorer returns the following error (while loading the player to the wrong dimensions and no video). Flowplayer works correctly in other instances, just not when called by videojs:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET4.0C; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 31 Jan 2012 01:00:06 UTC
Message: 'VideoJS' is undefined
Line: 12
Char: 3
Code: 0
URI: http://www.kingprods.com/gavin/sites/all/modules/videojs/theme/videojs.j...
It's the following page, which now works in almost all browsers except IE8:
http://www.kingprods.com/gavin/node/62
Comment #11
bradjones1@SuperRookie, your problem sounds more like #1235452: VideoJS.setupAllWhenReady need to be called after video.js library - there is a patch over there.
Comment #12
SuperRookie CreditAttribution: SuperRookie commentedBrad,
I applied the patch, and the error went away, but flowplayer is still not loading the video in ie8. All the HTML5 instances work just fine, but flowplayer (which works correctly when called directly) does not work when called by videojs.
Check this link if you can in an older IE and compare to other browsers (if you can):
http://www.kingprods.com/gavin/node/64
SR
Comment #13
bradjones1@Jorrit - here's a complete patch which supercedes everything from above.
@SuperRookie - I was running into the same problem with IE < 9, and I tracked it down to the detailed codecs that were being provided by this module - turns out VideoJS now expects a string without the
; codecs=
part.Comment #14
Jorrit CreditAttribution: Jorrit commentedYep, I noticed that as well. Video-JS does an exact match on the codec field to find the video/mp4 version to use for the Flash player. Also see https://github.com/zencoder/video-js/issues/124
Comment #15
Jorrit CreditAttribution: Jorrit commented@SuperRookie: Flowplayer will not be called anymore after this patch is applied. With Video.js 3, there is no need for a separate Flash fallback, because it has its own. I have fixed some bugs in the current version of the Video module, which is just for Video.js 2.0. You may want to check out the 7.x-1.x-dev release tomorrow to see if it works for you.
@bradjones1: As you have noticed, I have addressed almost all current bugs in the Video.js module. Could you try to create the patch to the current 1.x branch? If you do not have time for this, I will try to do it next week.
Comment #16
bradjones1@Jorrit - try this, re-rolled against the latest 7.x-1.x.
Comment #17
Jorrit CreditAttribution: Jorrit commentedThe patch has been committed and released as 7.x-2.x.