Hi all,

Hope I am posting this in the right section. I have been trying to upload and play .flv files using both Drupal 4.7 and 5. I have added the file FlowPlayer.swf to the root of the Drupal installation and changed the default flash player in the video settings to FlowPlayer.swf. I upload the .flv file and it seems to upload fine. But When playing the video only FlowPlayer pops up and no video...i.e no video is played withing the FlowPlayer player.

What am I doing wrong?

Thank you for your time.

Comments

JasonDugmore’s picture

Does no one know the answer to this problem?

Mods is this topic in the right section?

JasonDugmore’s picture

For reference I seem to be having the same issue as in this post: http://drupal.org/node/85282

JasonDugmore’s picture

When adding the following code to any body field with PHP input enabled, I can get the video to play:

http://flowplayer.sourceforge.net/howto.html code under quickstart section

So seems to be some issue with the video module, I find it strange that it does not work.

JasonDugmore’s picture

I am still struggling to get this to work and have found no fixes to the problem.

I am now thinking of making my own video module with the CCK module, could anyone provide me with a suggestion on how to do this.

therous’s picture

I have exactly the same issue - the FlowPlayer appears, but the video does not play. I can not seem to track down the problem, but when I embed the video it plays just fine, which points to a problem with the video module. I will cross post this as a support request on the video module page as well.

steveh2’s picture

What version of flashplayer do people have, I can reproduce an issue here that may explain this, plays fine with 8 and 9 but will not play with 7.

I'm just about to start looking at the flv meta data, maybe 7 needs to know the duration or something like that?

steveh2’s picture

Sorry to spread false hope, the last 2 I checked were amr audio that couldn't be converted with my version of ffmpeg so it produced a zero length file.

But it does suggest a couple of obvious checks to perform, I presume people have done the following:

1. checked that the file exists in the files/video directory
2. checked the web log to ensure that it was correctly requested and transferred (i.e. not a 404 etc)

MauMau’s picture

http://www.jeroenwijering.com/?item=Flash_Video_Player
I downloaded this, put it in the right directory, pointed correctly to it.
And it worked (although it can't do/I can't make it do fullscreen mode for some reason).

With Flowplayer I did the same.
Downloaded it, put it in the right directory, pointed correctly to it.
The FlowPlayer shows up (thermo, light, black, white) no problem.
But it will not play the videos.

Sod Flowplayer, I'm going with
http://www.jeroenwijering.com/?item=Flash_Video_Player

As for making your own CCK-fields:
http://drupal.org/project/mediafield

http://drupal.org/project/flashvideo
is a nice module as well. It's just close to impossible to install ffmpeg, ffmpeg-php and lame codecs on any server. In addition ffmpeg cannot convert all the nasty wmv-files out there. So you'll never be completely YouTube.

leelight@drupalchina.org’s picture

The same problem!!!
I also used the flvplayer.swf and put it to the root directory of drupal.
But it does not work also.
Here is one test link. I have upload the flr file to the right folder.

http://dva.easywms.com/en/node/3

Who knows?

zottmann’s picture

Hi!! I am also running into the same problem, but I think I've got a clue ...
No matter wich video file I upload, Flowplayer tries to play a file called "busy.flv". If I actually store a video file called "busy.flv" in my root directory, it actually plays this video.
I don't know how to fix this, but it may be a hint to someone who does ...

Regards,
Carlos.

Kumar2020’s picture

how u added the file FlowPlayer.swf to the root of the Drupal installation?

rubenk’s picture

this module has, quite frankly, a lack of quality support inthe way of instructions.

the module, when using the ffmpeg converter is designed to play a temporary flash file called busy.flv while waiting for ffmpeg to run and submit the converted file for view. when it runs, the video module automagically knows to show the newly rendered file instead of flash. if you havent set up ffmpeg correctly this wont work correctly.

alexromao’s picture

The problem seems to be the way drupals saves the node body.

e.g.

<object data="files/FlowPlayerLight.swf" width="400" height="250" type="application/x-shockwave-flash">
<param name="movie" value="files/FlowPlayerLight.swf" />
<param name="flashvars" value="config={videoFile: 'video.flv'}" />

turns into :

<p>
<object data="files/FlowPlayerLight.swf" width="400" height="250" type="application/x-shockwave-flash"></p>
<div></div><div></div><div></div><div></div><param name="movie" value="files/FlowPlayerLight.swf" />
<param name="flashvars" value="config={videoFile: 'video.flv'}" />

to avoid this situation :
force the object into 1 line without breakspaces

<object data="files/FlowPlayerLight.swf" width="400" height="250" type="application/x-shockwave-flash"> <param name="movie" value="files/FlowPlayerLight.swf" /><param name="flashvars" value="config={videoFile: 'video.flv'}" />
larowlan’s picture

Hi.
I also had the same problem with an mpg file not playing.
I took a look at the flowplayer technical facts on formats and found that with older versions of the flash player it doesn't handle high quality mpg.
I then tried a flv file and it worked fine in ie.
From this I figured it was something to do with my mpg.
I converted it to flv and it worked (using ffmpeg).
I then upgraded my version of the flash player to the latest (v10 from www.adobe.com) and reset the video to the original mpg. It worked fine.
I guess a lot of people would have the latest version of the player in firefox if that was their browser of choice but an older version in ie if they did not use it so much.
Hope this helps.
Lee Rowlands

Lee Rowlands

--author="larowlan <larowlan@395439.no-reply.drupal.org>"
moneesh.koundal’s picture

in your template.php you can call this function theme_video_play_flash($node) as

function phptemplate_video_play_flash($node) {
  $loader_location = variable_get('video_flvplayerloader', 'FlowPlayer.swf');

  $url = _video_get_fileurl($node->vidfile);
  $file = basename($url);
  $base_url = substr($url, 0, strrpos($url, '/'));

  $height = $node->video_scaled_y + 24; // add commands height

  // this will be executed by not Internet Explorer browsers
  $output = '<!--[if !IE]> <-->
<object type="application/x-shockwave-flash" width="'. $node->video_scaled_x .'" height="'. $height .'"
data="'. url() . check_plain($loader_location) .'">
<!--> <![endif]-->' . "\n";

  // this will be executed by Internet Explorer
  $output .= '<!--[if IE]>
<object type="application/x-shockwave-flash" width="'. $node->video_scaled_x .'" height="'. $height .'"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<![endif]-->' . "\n";

  // params will be passed to both IE or not IE browsers
 // $config = sprintf("config={'playerId':'player','clip':{'url':'%s'},'playlist':[{'url':'%s','autoPlay':%s}]}", $base_url . '/' . $file, $base_url . '/' . $file, (variable_get('video_autoplay', TRUE) ? 'true' : 'false'));
 $config = sprintf("file=".$base_url."/".$file);
  $output .= '<param name="movie" value="' . url() . check_plain($loader_location) . '" />
               <param name="allowFullScreen" value="true" />
               <param name="wmode" value="transparent" />
               <param name="allowScriptAccess" value="sameDomain" />
               <param name="quality" value="high" />
               <param name="flashvars" value="' . $config . '" />'
  . _video_get_parameters($node) .
  '<p>'. t('Your browser is not able to display this multimedia content.') .'</p>
</object>';
  $output = theme('video_format_play', $output, t('http://get.adobe.com/flashplayer/'),
                                      t('Link to Adobe Flash Player Download Page'),
                                      t('Download latest Flash Player'));
   return $output;
}

As you can see that i have changed $config varaible as my swf player take variable differently as defined for the flowplayer
i have used http://www.jeroenwijering.com/?item=Flash_Video_Player player for mysite