I am using FlashVideo 5.x-2.7and flowplayer. The videos are being converted fine, but when I place the [video] tag into the body of a node after uploading to that node the player loads and does not play FLV. I have included the code that drupal generates for the page. I have downloaded the generated flvs and played them locally, so flv is ok & thumnails generated ok. Any help would be usefull as I believe my flashvars are set right.

-Thanks - Leavitron

 <div class="content">This is text.......before the video
<div id="video-player" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="337" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="http://www.mysite.com/files/player.swf" /><param name="wmode" value="transparent" /><param name="FlashVars" value="file=http://www.mysite.com/files/video/37_bar3.flv&image=http://www.mysite.com/files/video/37_bar3.jpg&rotatetime=3&autostart=false" /><param name="quality" value="high" /><embed allowScriptAccess="always" src="http://www.mysite.com/files/player.swf" width="450" height="337" border="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" quality="high" flashvars="file=http://www.mysite.com/files/video/37_bar3.flv&image=http://www.mysite.com/files/video/37_bar3.jpg&rotatetime=3&autostart=false" /></object></div> 
This is Text After</div> 

Comments

trogie’s picture

subscribing

Any solutions already? Want to investigate flowplayer for HD (h264) video playing...

jordanmagnuson’s picture

Same problem, but for me none of the flash players I've tried are working... I just get a loading... 100% message, but no video plays. Even though the thumbnail and flv files are fine. Tried inserting the video with print flashvideo_get_video($node) in my node-video.tpl.php, but same thing...

Any help is much appreciated!

spiffyd’s picture

Can you check your HTML source and see what path the FLV is displayed? Verify this is the proper path.

travist’s picture

davidlerin,

Are you using Dash Media Player?... If so, then you need to copy the skins folder with the player. It shows "loading... 100%" if it cannot find a player skin to load.

Thanks,

Travis.

spiffyd’s picture

I believe he mentioned he's using "flowplayer"

mgcm’s picture

I have successfully used FlowPlayer with FlashVideo but with version 6.x-1.4-beta. This is sort of a hack but here's how i've done it:

1) added to 'flashvideo.module' the following:

...
function flashvideo_play($video) {
   // mgcm: Added flashembed.js for FlowPlayer
   drupal_add_js('sites/default/files/flashembed.js');

   // Get the filetype of the video to be shown.
   $filetype = $video['override'] ? 'flv' : _flashvideo_get_filetype($video['file']);
...

2) changed 'flashvideo-flash.tpl.php' to the following code:


<script> 
flashembed("video-player",
	{
		src: "/sites/default/files/flowplayer/FlowPlayerLight.swf",
		width: "<?= $video['width']; ?>",
		height: "<?= $video['height']; ?>",
		wmode: 'transparent',
	},
	{
	config: { 
    	videoFile: '<?= $video['file']; ?>',
	initialScale: 'scale',
	autoPlay: <?= $video['autostart']; ?>,
}});
</script>

In your video node, just add the usual [video] tag for the uploaded file and everything should work nicely.

travist’s picture

Status: Active » Closed (won't fix)

Great patch. I don't think this will make it into the core module, though since it requires a change to the core get video routine.

slip’s picture

Version: 5.x-2.7 » 6.x-1.4

Here's an update for mgcm's flowplayer hack. I've used it with flowplayer 3.0.1 in Drupal 6. It's pretty much the same but flowplayer has changed how it's embedded a bit.

1) added to 'flashvideo.module' the following:

   // mgcm: Added flashembed.js for FlowPlayer
  drupal_add_js('sites/default/files/flowplayer/example/flowplayer-3.0.1.min.js');

   // Get the filetype of the video to be shown.
   $filetype = $video['override'] ? 'flv' : _flashvideo_get_filetype($video['file']);

2) changed 'flashvideo-flash.tpl.php' to the following code:

<a
 href="<?= $video['file']; ?>" 
 style="display:block;width:400px;height:300px"
 id="player">
</a>

<script>
        flowplayer("player", "/sites/default/files/flowplayer/flowplayer-3.0.1.swf");
</script>
slip’s picture

Just for completeness:

I just set up FlashVideo in Drupal 5 to work with flowplayer 3.0.1 in a way similar to those described above. Just add code like the following to your template.php file in your theme directory:

function YOURTHEMENAME_flashvideo_play_flash($video) {
  drupal_add_js('files/flowplayer/example/flowplayer-3.0.1.min.js');
  $output = '<a href="'.$video['file'].'" style="display:block;width:400px;height:300px" id="player"></a>';

  $output .= '<script>';
  $output .= 'flowplayer("player", "/files/flowplayer/flowplayer-3.0.1.swf");';
  $output .= '</script>';

  return $output;
}

Now when you write [video] in your node templates it'll open up flowplayer.

tolimar’s picture

Hi!

Did anyone of you got FlashPlayer running with several Videos on one node? With the method mentioned above it works, but only for the first video. For the pater ones the FOO_flashvideo_play_flash function seems to be ignored. When I delete the first video of the page (so that I only see the video not avaialble picture) the second video works. So anyone knows how to get that working with several videos on a page?

I'm using Drupal 5 and FlashVideo 5.x-2.8-rc3.

Best regards,
Alexander