Closed (fixed)
Project:
Video
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2008 at 07:19 UTC
Updated:
25 Jul 2009 at 08:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
fax8 commentedhi, you might try to override the theme function which render the player and substitute the param with autoplay=false.
you can find more informations on overriding theme functions on the phptemplate theming handbook.
Let me know if you still needs help.
Comment #2
rhache commentedI know how to do theme overrides, except I can see any way to do that with the video modules. I would need some more details on how to actually go about doing that.
Thanks,
Rene
Comment #3
fax8 commentedThe function you have to override is the theme_video_play_quicktime.
Do you see the autoplay line?
<param name="AUTOPLAY" value="true" />You should change that to
<param name="AUTOPLAY" value="false" />in the overrrided function.
Hope this helps.
Comment #4
fax8 commentedSome more hints:
* Create a template.php file in your theme folder
* insert into that file a function called phptemplate_video_play_quicktime($node) with the same code as the one above
* change the autoplay line in the phptemplate function as detailed above
Comment #5
scottrigbyoddly this doesn't work for me in Garland theme :(
Comment #6
fax8 commentedwhat problem did you find?
Comment #7
scottrigbyOh - the only problem is that it continues to auto-play even after following the steps above. I'm not sure how to trouble-shoot further from there though.
- I literally copies the function from #3 exactly
- changed the autoplay value to "false"
- changed the name of the function to "phptemplate_video_play_quicktime($node)"
- and placed in my template.php file
This didn't stop the video from auto-playing in my (slightly) modified Garland theme.
But this isn't my biggest problem - please see this issue #234767: Thickbox preview from thumbnail doesn't work
(the main reason I wanted to stop auto play is because when using print_r to show page variables the multiple instances of auto playing videos bog down the process...)
Thanks!
Scott
Comment #8
drew reece commentedIsn't the autoplay happening because you are using print_r to dump the page vars. Does it still autoplay when the page has no print_r() statement.
IIRC the print_r doesn't use the theme function, it just spits the variables including paths to the files. The browser may be autoplaying by default because the autoplay=false isn't themed into the embed link.
Drew
Comment #9
leramulina commentedWhere can I find this file?
Comment #10
markDrupal commentedI made a patch to the 6.x branch, but it should be easily applied to the 5.x versions as well. This patch adds an option to the video settings for Autostart
It can be enabled or disabled.
Comment #11
tharun.patel commentedChange autoplay/autostart = 0, setting it to false has no effect in firefox
Comment #12
hypertext200added to dev