Recently i've updated both VideoJS and CCK (VideoJS 6.x-1.7 , CCK 6.x-3.0-alpha3) after the update all videos are displayed twice! I tried to find the problem and noticed that the CCK is displaying the video twice because i have two files (mp4 & webm) attached to the custom field. Here is the output when i print the items variable in modules/cck/theme/content-field.tpl.php line 35:

Array ( [0] => Array ( [fid] => 555 [uid] => 7 [filename] => 6_normal.mp4 [filepath] => sites/default/files/videos/6_normal_1.mp4 [filemime] => video/mp4 [filesize] => 1907641 [status] => 1 [timestamp] => 1326098418 [list] => 1 [data] => [nid] => 125 [#delta] => 0 [view] =>
Download Video: MP4, ATION/OCTET-STREAM,
[empty] => ) [1] => Array ( [fid] => 556 [uid] => 7 [filename] => 6_normal.webm [filepath] => sites/default/files/videos/6_normal_1.webm [filemime] => application/octet-stream [filesize] => 2082726 [status] => 1 [timestamp] => 1326098431 [list] => 1 [data] => [nid] => 125 [#delta] => 1 [view] =>
Download Video: MP4, ATION/OCTET-STREAM,
[empty] => ) )
Download Video: MP4, ATION/OCTET-STREAM,
Download Video: MP4, ATION/OCTET-STREAM,

Any idea why this is happening?


Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

If you make the following update to videojs.module and clear the Drupal cache, is the problem gone?



Jorrit’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed in git.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Nico_Laine’s picture


You said it has been fixed but I have exactly the same problem: videos are displayed twice when I put 2 files for one field...
I tried to debug it seems that the field module split into different items.
Does someone have more explanations please ?!

Jorrit’s picture

With which version are you having this problem? Can I see the page with the two videos?

Nico_Laine’s picture

I think I found the problem: I'm using the module "video" and "video.js" and it makes some problem when you want to put different sources for the video.
I tried to use video.js only alone with file field and it works!
Maybe we can close this discussion, thanks for your response.