Closed (fixed)
Project:
Video
Version:
4.7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2006 at 14:52 UTC
Updated:
25 Jul 2009 at 09:30 UTC
Hi, I have this module setup so that the video is inline with the node, however when the node is loaded the video automatically starts if it is an uploaded video. Is there anyway to add a play button so that it doesn't automatically start upon page loading?
Also, when adding custom fields to the video, on the node page I always end up with <br class="clear" /> at the end of each custom field. How can I remove this?
Thanks for any help, I appreciate it.
Comments
Comment #1
fax8 commentedremove autoplay: it depends on the player you are using.
I already helped someone here on drupal.org making the defaul behavior to no autoplay.
Do a search on drupal.org, maybe you can use that info.
Have a look at video_customfields.module and search for that br line and delete it.
Fabio
Comment #2
Jboo commentedThanks Fabio, i've now fixed the
<br class="clear" />problem, but can't seem to find the issue about the autoplay you mention. I'll keep searching as this would be great to get done.Thanks.
Comment #3
schwa commentedI'll write this up here, having just hunted/pecked to do it myself:
To switch from autoplay to non-autoplay: you just want to find the autostart/loop/autoplay option for each player type written up in video.module, and then change its value from true to false.
For flv videos change this line in the video.module file:
<param name="FlashVars" value="baseURL='. $base_url .'&videoFile='. $file .'&autoPlay=true&bufferLength=5" />' . "\n"to
<param name="FlashVars" value="baseURL='. $base_url .'&videoFile='. $file .'&autoPlay=true&loop=false&bufferLength=5" />' . "\n"for Quicktime, change this line in the video.module file (I'm including the surrounding chunk o' code):
from
to
for Realmedia format videos:
from
to
and for Windows Media Format (WMV) files, change:
from
to
Comment #4
Jboo commentedThank you. I seemed to get errors when copying and pasting the Realmedia changes but if I changed it by hand it seemed to produce no errors.
SWF videos are causing a bit of a headache at the moment. They play automatically and continue on loop. I would like to stop the loop and add a "play" button, and even a "stop" button if possible.
If anyone knows how I can do this i'd really appreciate it.
Thanks.
Comment #5
hypertext200