I upgraded from 2.5 to 2.8 and none of the files play. I only see "video type not supported" error on any file (flv, wav etc.)

Comments

hypertext200’s picture

See the configurations? and check includes/common.inc file

gintass’s picture

What should I look for in common.inc I see that in another comment you mentioned what it supposed to have:
http://drupal.org/node/658380#comment-2387614
Well, my common.inc does have this:

<?php
function _video_common_get_player($node) {
  $op = ($node->vtype == "upload")?  _video_get_filetype($node->vidfile) : $node->vtype;
  switch ($op) {
    case 'divx':
      return theme('video_play_divx', $node);
    case 'mov':
    case '3gp':
    case '3g2':
    case 'mp4':
      return theme('video_play_quicktime', $node);
    case 'rm':
      return theme('video_play_realmedia', $node);
    case 'f4v':
    case 'flv': // flowplayer also supprts MP4, H.264 (.extension?)
      return theme('video_play_flash', $node);
    case 'swf':
      return theme('video_play_swf', $node);
    case 'dir':
    case 'dcr':
      return theme('video_play_dcr', $node);
    case 'asf':
    case 'wmv':
    case 'avi':
    case 'mpg':
    case 'mpeg':
     return theme('video_play_windowsmedia', $node);
    case 'ogg':
      return theme('video_play_ogg_theora', $node);
    case 'youtube':
      return theme('video_play_youtube', $node);
    case 'googlevideo':
      return theme('video_play_googlevideo', $node);
    default:
      drupal_set_message('Video type not supported', 'error');
      break;
  }
}
?>

In regards of configurations, I don't know what to look for either. I just know that they are exactly the same as in 2.5

hypertext200’s picture

Is this for uploaded videos or link video?

hypertext200’s picture

gintass’s picture

This is a URL case. All my videos have been uploaded via FTP to the same server where Drupal is installed.

gintass’s picture

Are you suggesting to "hack" your module by making the change as suggested in this comment?
http://drupal.org/node/617914#comment-2280840
I guess it would only make sense if you are planing commit this change to your module. Or should I understand that URL option isn't working in 2.8 and we should stick to 2.5 and wait until this issue is fixed in later upgrades.

hypertext200’s picture

Please change the $op to

$op = ($node->vtype == "upload" || $node->vtype == "url")?  _video_get_filetype($node->vidfile) : $node->vtype;
hypertext200’s picture

Please use this, until I fix this in next release.

gintass’s picture

@heshanmw
Thank you very much. It works fine now.

hypertext200’s picture

Status: Active » Fixed

Will be port with next release

Status: Fixed » Closed (fixed)

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

dmjossel’s picture

Version: 6.x-2.8 » 6.x-2.9
Status: Closed (fixed) » Active

This error seems to have popped back in again in 2.9. Videos with the .flv type as URL videos throw a "type not supported" error again until $op is changed again to allow values of "upload" or "url" instead of just "upload".

hypertext200’s picture

If you want to embeded video from other site use embeded video files module, and if you need really good features with video module as active in developments please use Drupal 6.x.4.x module.

6.x.2.9 is the old module, currently fixed many issues in the latest one.

hypertext200’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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