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.
I have got video and video.js installed and videos uploaded in h.264/mp4 format. When loading on OS X in Firefox (doesn't support mp4) the flash fallback isn't working. It is outputting the video tag with mp4 video as the source file.
Am I missing something that needs to be configured for flash fallback to work? As I understand it, flash is built into video.js (I'm running v4.1.0).
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedAre you sure that Flash is working in your browser? Can you post a link to the page that doesn't work?
Comment #2
steveaps CreditAttribution: steveaps commentedYep, flash works on other sites.
So, for example:
http://beta.saltlight.co.uk/node/68 works on Firefox on PC but not Firefox on OS X
and:
http://beta.saltlight.co.uk/node/70 works on Firefox on OS X but not on PC.
You can actually see in the source code that it outputs:
That is generated by video.theme.inc looking for video_extension_mov_flash_player, but when you set the player for MOV files to video.js it adds a value for video_extension_mov_html5_player and not one for video_extension_mov_flash_player.
Comment #3
Jorrit CreditAttribution: Jorrit commentedThat is code from the Video module, not from the video.js module. What player did you select for mov files in the Video module settings?
Comment #4
steveaps CreditAttribution: steveaps commentedAh yes, sorry, I'd changed it to the built in 'HTML 5 with fallback to flash' to see if that worked. I've now changed it back to video.js.
That error has disappeared but video.js is still not falling back to flash, just displaying "no video with supported format and MIME type found"
Comment #5
Jorrit CreditAttribution: Jorrit commentedDoes your Firefox installation on OS X support Flash at all? Can you see Flash content on other sites using Firefox on OS X?
Comment #6
steveaps CreditAttribution: steveaps commentedYep, both my PC and Mac test machines have flash working in Firefox on other sites.
Comment #7
steveaps CreditAttribution: steveaps commentedAny further ideas on this? What code actually does the detecting whether it should fallback to flash? I'm happy to do some diagnosing of the issue myself I'm just not entirely sure where to start.
Comment #8
Jorrit CreditAttribution: Jorrit commentedI have taken a look at the two links you provided. Video.js doesn't seem to be loaded properly. Did you download the right version to sites/all/libraries/video-js? Does the Drupal status panel list any warnings or errors related to Video.js?
Comment #9
Bagz CreditAttribution: Bagz commentedI had the very same issue, using video-js 4.2.1 videos would not fallback to flash in IE8. Then I had a brainwave and tried the latest 3.x-dev version of the module and bingo, all working beautifully now. Might be worth a try.
Comment #10
steveaps CreditAttribution: steveaps commentedI was using too new a version of the video.js library for the module I was using. I've set up a completely fresh drupal site with the latest dev release of 3.x of the module and pointing it at the CDN for the library. I've uploaded the same video and it doesn't fallback to flash in firefox on PC, it just spins the loading wheel indefinitely:
http://videotest.apsinfrastructure.co.uk/node/1
(DNS is quite new, link should work shortly)
Comment #11
rbennion CreditAttribution: rbennion commentedI struggled with Flash Fallback in Firefox for days. You need to make sure your MP4 video is encoded with the "Fast Start/Web Optimized" option. if it is not, then the whole video will convert to flash before it will play. You can test this by loading the page with the video that won't play, and check to see if a bunch of data is downloading.
I discovered this on accident as I walked away from the machine for lunch, and next thing I know, I hear the video play back about 10 minutes later.
Here is where I found the cure: http://help.videojs.com/discussions/problems/1141-ie8-flash-fallback-buf...
EDIT: I just checked your link above in Win XP/FF25 and OSX10.9/FF24 and Flash Fallback is working for me.
Comment #12
bartlantz CreditAttribution: bartlantz commentedI was having the same problem. I was using the latest version of video.js, but was using the stable 7.x-2.3 version of this module, and when testing on older IE 7 and IE 8 I was getting no flash fallback.
But after I updated the module to version 7.x-3.x-dev, the flash fallback now appears and works on older versions of IE.
Comment #13
Wtower CreditAttribution: Wtower commentedI run across the same issue. I wonder how is Flash fallback working. Even when I specify a single flv file within a file field with video.js widget, and I try to present the content on ie8 (which does not support HMTL5 video tag), the content generated is still under the video HTML tag. This happens for any module version that I have tried, including last stable (2.3) and last dev (3.x) and video.js 4.3. What would be expected for Flash fallback would be an object HTML tag.
I do not know how this is supposed to be handled by the javascript library or the module itself. As far as I understand , having a quick look at the code, this is expected by both. The file which is responsible for this output is theme/videojs.tpl.php which apparently is not handling Flash fallback at all, except if this is supposed to happen somewhere in the javascript in a way that I missed.
Could someone please let me know how the Flash fallback is supposed to work for this and what can do to use it. It is a very nice and light module which I would rather prefer against other nice but not so slim alternatives as MediaFront.
Comment #14
Jorrit CreditAttribution: Jorrit as a volunteer commented