Active
Project:
SWF Tools
Version:
6.x-2.4
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 22:49 UTC
Updated:
18 Apr 2009 at 00:36 UTC
Is there a way using the swftools syntax to change the flowplayer controls?
I have no problem making the flowplayer work correctly but when I make the video smaller to display in a block I would like to only remove the player controls. can this be done? (i have done it with flowplayer outside of drupal so i know it is possible: code outside of drupal below)
drupal with swftools code:
print swf('videos/itssimplenew.mp4', array('params' => array('height' => '150', 'width' => '200'), 'icons' => 'false'));
outside of drupal code to disable player controls:
Comments
Comment #1
thinkel6 commentedmy post got cut off. outside of drupal you can control the player controls with the following inside javascipt tags, any way to do it inside swftools within drupal?
flowplayer("player", "videos/flowplayer-3.0.7.swf", {
clip: {
autoPlay: false,
autoBuffering: true
} ,
plugins: { controls: null }
}).controls("htmlControls");
thanks
great module
Comment #2
Stuart Greenfield commentedYou can't currently use the controls : null format with the SWF Tools implementation of FlowPlayer3. You can turn off controls by targetting them individually by passing their name on 'othervars' - if you target all of them I think you should be able to turn everything off.
There are some plans to further extend the FP3 module to support a wider range of plugins too.