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

Jorrit’s picture

Are you sure that Flash is working in your browser? Can you post a link to the page that doesn't work?

steveaps’s picture

Yep, 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:

<video width="640" height="360" thmr="thmr_95 thmr_96 thmr_97" poster="http://beta.saltlight.co.uk/sites/default/files/videos/thumbnails/1789/BACARDI_B_0.jpg" controls="controls" preload="auto">
    <source type="video/mp4" src="http://beta.saltlight.co.uk/sites/default/files/videos/original/BACARDI.mov"></source>
    <span class="devel-themer-wrapper" thmr="thmr_98 thmr_100">No flash player has been set up.</span>
    <a thmr="thmr_98 thmr_100 thmr_99" href="/admin/config/media/video/players">Please select a player to play Flash videos.</a>
</video>

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.

Jorrit’s picture

That 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?

steveaps’s picture

Ah 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"

Jorrit’s picture

Does your Firefox installation on OS X support Flash at all? Can you see Flash content on other sites using Firefox on OS X?

steveaps’s picture

Yep, both my PC and Mac test machines have flash working in Firefox on other sites.

steveaps’s picture

Any 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.

Jorrit’s picture

I 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?

Bagz’s picture

I 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.

steveaps’s picture

I 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)

rbennion’s picture

I 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.

bartlantz’s picture

I 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.

Wtower’s picture

Issue summary: View changes

I 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.

Jorrit’s picture

Status: Active » Closed (outdated)