VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Video doesn't autoplay!
(1 viewing) (1) Guest

TOPIC: Video doesn't autoplay!

Video doesn't autoplay! 26 Sep 2016 16:38 #9489

Hi, I would like to know how to set the autoplay videos uploaded to the portfolio Template JF Salina:

I have enabled the autoplay in the options where there is this option but the video doesn't autoplay.

www.gfxstudios.it/index.php/component/k2...o-by-valuemed-pharma

Thanks for the help

  • Posts:18
  • Sunhyre
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Video doesn't autoplay! 11 Oct 2016 10:51 #9564

up

  • Posts:18
  • Sunhyre
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Video doesn't autoplay! 12 Oct 2016 04:19 #9566

Hi Synhyre,

You can add the bellow code to the footer of the page (After </body> tag)

jQuery(document).ready(function(){
jQuery(".pretty-embed").trigger('click');
});


It will auto play the video when page is ready .

JoomFreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Video doesn't autoplay! 12 Oct 2016 16:15 #9568

Thanks for the reply.

Pages with video are handled by the component k2, how do I put that code in a custom html module and enable it only for those pages?

All the pages created with the component k2 does not appear in the section "assign module" for any module.

  • Posts:18
  • Sunhyre
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Video doesn't autoplay! 13 Oct 2016 08:49 #9571

You should add this javascript to the template index file, after the body tag.

 
<?php if ($option !== "com_k2") : ?>
javascript here
<?php endif; ?>
 


Hope that help,

JoomFreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Video doesn't autoplay! 13 Oct 2016 11:15 #9575

I entered as you have indicated but it does not work, am I doing something wrong?

www.gfxstudios.it/index.php/component/k2...o-by-valuemed-pharma

It should start automatically
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.

  • Posts:18
  • Sunhyre
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Time to create page: 1.08 seconds
Friday 29 March 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.