Time for action—Setting the player for the YouTube module
By default, the module is on autoplay.
If you prefer to change the setting so that the video plays only when it is clicked, you will have to go to the
modules
folder and open theeditorialyoutube.tpl
.<!-- Module Editorial --> <div id="editorial_block_center" class="editorial_block" align="center"> <embed src="http://www.youtube.com/v/{if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}&autoplay=1&hl=en&fs=1" type="application/x- shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="437"></embed> </div> <!-- /Module Editorial -->
Look for
&autoplay=1
, and change it to read&autoplay=0
.Save the file.
What just happened?
By changing this setting, the user will be required to click on the play button to start instead of the YouTube video being automatically playing once the page loads.
Instead of using YouTube, you may also...