I did search some issues that could be helpfull, but none get me satisfaction.
So I open mine (sorry about my english btw...) :

Ok. So I installed a version of videojs module in 2011 on a website, with Drupal 7.9
Everything worked fine.

But (yes...)
I upgraded the version of my Drupal to the 7.18, and the version of videojs module to the 7.x-2.2 version like 2 months ago.
(And of course, my library video-js has been upgraded too, to the v3.2.0).

On my homepage, I've got a block that loads a node (a custom type), wich has some file fields attached.
And below is the piece of code I used before the upgrade, in my hook_node_view() to have a $node->payer object :

    $items['mp4']  = $node->field_home_video_mp4['und'][0];
    $items['ogg']  = $node->field_home_video_ogg['und'][0];

    // Optionals
    $items['webm'] = $node->field_home_video_webm['und'][0] ? $node->field_home_video_webm['und'][0] : NULL;
    $items['thumbnail'] = $node->field_home_video_image['und'][0] ? $node->field_home_video_image['und'][0] : NULL;
    $attributes['width']  = '100%';
    $attributes['height'] = 432;
    // Player
    $node->player = theme('videojs', array('items' => $items, 'player_id' => 'videojs-playerid', 'attributes' => $attributes));

And this is the HTML source code, as output on Chrome :

  <section id="video-231" class="section_video node node-home-video clearfix" about="/fr/content/homevideo-v3" typeof="sioc:Item foaf:Document">
    <video id="videojs-playerid-video" data-setup="{}" class="video-js vjs-default-skin" width="100%" height="432" controls="controls" preload="auto" poster="http://www.mysite.com/sites/default/files/mysite_homevideo.jpg">
      <source src="http://www.mysite.com/sites/default/files/mysite_homevideo.mp4" type="video/mp4" />
      <source src="http://www.mysite.com/sites/default/files/mysite_homevideo.ogv" type="video/ogg" />
      <source src="http://www.mysite.com/sites/default/files/mysite_homevideo.webm" type="video/webm" />

So I do have all the sources in the markup, (I think this output is fine), and my video.min.js is loaded in the head of my HTML page.

Before the update, in the videojs.tpl.php file, it explicitly declared the flash-fallback (object, embed, params...), everything was fine.
Since I've updated, I do not have any flash fallback in IE.

Is there something I did wrong ?

Thanks for helping.


Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

The flash fallback should be added by Video.js dynamically. Did you upload the video SWF file that comes with Video.js 3.2.0?

Can I see this video somewhere online?

julienjoye’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Thanks for your quick answer.

I did upload the entire video-js folder, which contains the video-js.swf file, in my libraries folder.
The Library path is successfully configured in the module settings form.

Btw, at the end of my video.min.js, on my localhost, I console.log() the _V_.options.flash.swf, and it indicates "http://vjs.zencdn.net/3.2/video-js.swf", is that correct ?
I don't get it, it should work...

Jorrit’s picture

When you go to http://videojs.com/, do you see a Flash fallback in IE?

julienjoye’s picture

I even see a flash fallback by typing this URL :
http://www.mysite.com/sites/all/libraries/video-js/demo.html :'(

Jorrit’s picture

Could you also try a fixed width for the video element?

julienjoye’s picture

I come back with some news.

You are right.
width 100% seems to cause a problem during the flash-fallback generation.

This worked with the last version, but I don't figure to tell our guest that we have to downgrade.

How can I fix this. Some Idea ?
This video must adapt its width to its wrapper.

Thanks a lot for your answers anyway.

Jorrit’s picture

I can't help you there. You may be able to find hints at https://github.com/zencoder/video-js/issues or http://videojs.com/.

julienjoye’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok thank you again.
I close this issue.

Jaypan’s picture

Updating to VideoJS 7.x-3.0 solved the problem of no flash fallback in IE7-8 for me.

Status: Postponed (maintainer needs more info) » Closed (fixed)