Everything works great except for the "fullscreen" option. In the "Jeroen Wijering - Flash Players" options under "Interactivity", I have "fullscreen" set to "True", but it doesn't work. I also tried:

<.swf
height="240"
width="360"
loop="true"
allowfullscreen="true"
file="Video1.flv"> (without the .'s of course)

and the height/width/loop worked, but still fullscreen would not.

Please help me. Thank you.

Comments

marcoka’s picture

i got the same problem.

drew reece’s picture

Can anyone confirm if the fullscreen option works with Wijering Flashplayer (JW Player) using SWFObject to embed? The fullscreen button appears on the player, but doesn't actually do anything. I have the latest Flash player installed.

I have tried several other drupal modules (Openpackage_video, Flash_video, Flashnode). The ones listed IIRC use the JW player and they all work with the fullscreen button. The SWFTools module doesn't want to work with the fullscreen when using SWFObject to embed the JW player or basic embedding. The other modules don't suite my needs, but SWFTools does.
I have had success getting it to work via the UFO embeding method, but sadly this causes a dialog on page load that contains a list of FlashVars for the player, so it is not usable.

I have tried on local and remote servers incase it was some weird config issue, but it makes no difference, the fullscreen is still borked.

The only way I can suggest figuring this out is to make a copy of the relevant page.html and manually tweak the flashvars & embed code until the error becomes apparent. I'm not sure if the fullscreen behavior requires javascript, turning it on for JW player makes no difference.

There appears to be several other threads on this issue for this module.
http://drupal.org/node/238108
http://drupal.org/node/166804
This one veers off the original topic into the fullscreen issue - http://drupal.org/node/153780
There is also advice on Jeron Wijerings site about this issue, but it didn't help me I'm afraid…
http://www.jeroenwijering.com/?thread=4679

Please post any info if you are experiencing this too, I think it can be worked out if we all try.

Drew

drew reece’s picture

Right,

I think I have found the issue, but I should make sure if you try this you need to be using the same embedding method as me, so before the (hacky) fix some info.

SWFTools 5.x-1.x-dev
SWFObject 5.x-1.x-dev
(I read the dev versions fix other outstanding issues with swftools)

Embedding method (admin>media>swf>embed , Javascript settings section) Method needs to use SWF Object.

This goes into the SWF Object module on line 56, before the line with $html = '<div id="swfobject-id-'

  /* UGLY HACK, Force the allow fullscreen to true, regardless of settings in drupal pages. */ 
  // print_r($vars->params); // used look at the params, not required
  $vars->params['allowfullscreen'] = 'true';

This puts a parameter, allowfullscreen=true, into the swfobject code as explained on the Wijering site. This is an ugly hack, but seems to work for now. It overrides the settings used on the site.

I will look into getting the parameter from the settings page in the near future, I have just spent too much time on getting flash to work recently, why does it need to be a PITA Adobe?

I'd love for someone to test this.
Thanks,
Drew.

imp_squared’s picture

I've tested the fix above by "drew reece" and it seems to be working!!

Thanks Drew Reece!!

andrewoke’s picture

I have a solution that everyone could put into their template.php to override the modules function.

function phptemplate_swftools_swftools_embed($action = 'add_js', $methods = FALSE, $vars = FALSE, $preview = 'NA') {

  if ($action == 'add_js') {
    // No javascript stuff for this embed method to do.
    return;
  }

  $P = $vars->params; // For legibility.

  $width_attr = ($P['width']) ? ' width="'. $P['width'] .'"' : '';
  $height_attr = ($P['height']) ? ' height="'. $P['height'] .'"' : '';
  $loop = _swftools_tf($P['loop']);
  $menu = _swftools_tf($P['menu']);
  $play = _swftools_tf($P['play']);

  $id = ($vars->othervars['id']) ? '<param name="id" value="'. $vars->othervars['id'] .'" />'."\n" : '';
  $name = ($vars->othervars['id']) ? ' name="'. $vars->othervars['id'] .'"' : '';
  $swliveconnect = ($P['swliveconnect']) ? ' swliveconnect="'. $P['swliveconnect'] .'"' : '';

  $html =  '<div class="swftools"><object'. $width_attr . $height_attr . $id .' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='. $vars->params['version']  .',0,0,0">'."\n" ;
  $html .= '<param name="allowScriptAccess" value="sameDomain" />'."\n" ;
  $html .= '<param name="movie"   value="'. $P['src'] .'" />'."\n" ;
  $html .= '<param name="wmode"   value="'. $P['wmode']   .'" />'."\n" ;
  $html .= '<param name="bgcolor" value="'. $P['bgcolor'] .'" />'."\n" ;
  $html .= '<param name="scale"   value="'. $P['scale']  .'" />'."\n" ;
  $html .= '<param name="quality" value="'. $P['quality'] .'" />'."\n" ;
  $html .= '<param name="align"   value="'. $P['align'] .'" />'."\n" ;
###############
## declare fullscreen for IE
###############
  $html .= '<param name="allowfullscreen" value="true">';
  $html .= (($P['flashvars']) ? '<param name="FlashVars"  value="'. $P['flashvars']  .'" />'."\n" : '') ;
###############
## set isall to true... didn't figure out syntax to include it below
################
  $isall = "true";
  $html .= '<embed'
        . $width_attr
        . $height_attr
        . $name
        . $swliveconnect
        .' src="'.     $P['src']     .'"'
        .' wmode="'.   $P['wmode']   .'"'
        .' bgcolor="'. $P['bgcolor'] .'"'
        .' scale="'.   $P['scale']   .'"'
        .' quality="'. $P['quality'] .'"'
        .' loop="'.    $loop         .'"'
        .' menu="'.    $menu         .'"'
#############
#### add fullscreen for firefox
#############
	.' allowfullscreen="' . $isall . '"'
        .' play="'.    $play         .'"'
        .' name="'.    $P['name']    .'"'
        .' base="'.    $P['base']    .'"'
        . (($P['salign']) ? ' salign="'. $P['salign'] .'"' : '')
        . (($P['flashvars']) ? ' FlashVars="'. $P['flashvars'] .'"' : '')
        .' allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"'
        .' />'."\n" ;
  $html .= '</object></div>'."\n" ;

  return $html;
}

Hope that fixes the problem... It did for me.

EDIT: I should add that this works with the direct embedding, not the javascript.

Stuart Greenfield’s picture

There is a glitch in the code for SWF Tools 5 that means full screen isn't properly enabled. I'm currently porting the module to version 6, and the dev code for that supports full screen.

When I get a chance there are a bunch of fixes to port back to version 5, and this will be one of the them.

Watch this space for an update in the near (said with some confidence!) future.

Stuart Greenfield’s picture

Status: Active » Needs review

A fix for this issue is built in to a new 5.x-1.x-dev release and is ready for testing. The new package will be available when the packaging scripts next run.

Stuart Greenfield’s picture

Status: Needs review » Fixed

Setting to fixed as new releases of SWF Tools 5.x-2.0 and SWF Tools 6.x-1.1 are now available which address this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mkdi’s picture

Title: Fullscreen does not work. » Fullscreen still does not work.

I tried SWFtools 6.x-1.3 with flashnode, and alternatively with flashfiled+filefield modules, but the full screen option still does not work. Any ideas...any one?. My drupal and modules versions are as follows;

Drupal 6.9

Flashnode 6.x-3.0

Flashfiled 6.x-0.0
Filefield 6.x-3.x

SWF tools 6.x-1.3

Thanks in advance.

drew reece’s picture

mkdi,
You may be better starting a new thread in the correct version of the modules that you suspect are causing the issue. I suspect the development of Drupal 5 modules is winding down.

You should also check the output to see if it is not creating the parameters for the SWF, as was the case in this thread. You could also try the older SWF Tools 6.x-1.1 to see if that works as stated in post #8.