Autoplay does not work even when you check the Autoplay box in settings. Can any one second this?

Also... is there any way to remove the file icon (above the video) and file name (below the video) in the node?

Comments

waddles’s picture

Status: Active » Closed (works as designed)

I think you'll find the problem of autoplay doing nothing is specific to the player. The JW Player uses the flashvar "autostart" instead. Suggest you submit this issue to the authors of the original jQuery plugin, not this wrapper module for drupal.

josesanmartin’s picture

It's true that the autoplay issue should be addressed in the plugin, not in this wrapper. The file icon, however, should be removed by this wrapper.

As a workaround, if you're using custom JS, you can do that:

        $('.filefield-file a').media({ flashvars: { autostart: true } }); //autostart video
        $('.filefield-file .filefield-icon').hide(); //hide icon
        $('.filefield-file div div').hide(); //hide link text
Joanzo’s picture

hei, how to use custom JS ?
where i can create and connect it with jQuery Media?
or where should i put that code?

        $('.filefield-file a').media({ flashvars: { autostart: true } }); //autostart video
        $('.filefield-file .filefield-icon').hide(); //hide icon
        $('.filefield-file div div').hide(); //hide link text

I'm using drupal 5.12
thanx

mimhakkuh’s picture

I am also looking for a way to not output the filename - where would you actually put your 3 lines of code?

mimhakkuh’s picture

Found an explanation here: http://drupal.org/node/344810 template.php needs node preprocess modifications ...

josesanmartin’s picture

Custom JS? You can set that in the module configurations. It allows you to specify a custom js.
Otherwise, if you're using D6, just create a script.js file in your theme.

ironmurph’s picture

Easy
add the following to your local.css file located in /sites/all/"yourtheme"/css. If there is none there add a new css file at this location.

.filefield-file .filefield-icon {display:none;} /*hide icon*/
.filefield-file div div {display:none;} /*hide link text*/

Good luck

Sam Murphy
Strategic Websites
www.strategicwebsites.co.nz