Video Autoplay in Phoca Download [SOLVED]

Phoca Download - download manager
RussTapp
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 Jun 2015, 13:59

Video Autoplay in Phoca Download [SOLVED]

Post by RussTapp »

For those who are wanting to have your mp4 videos to play automatically when clicking on the "Play" button on your Phoca Download page of your website I found the solution. I am posting the solution because I just spent hours searching this forum for an answer that would allow my videos in Phoca Download to play automatically. But I could not find any answers or a direct posting regarding this topic. So in order to save time for someone else looking for the same solution here it is!

SOLUTION:

You just have to add the text: "autoplay" to this php file:
components/com_phocadownload/views/play/tmpl/default.php

At lines 16 & 21 you will find the following code:

Code: Select all

echo '<audio width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 0px;" controls>';
[/b]

Add the text "autoplay" (without the quotation marks) at the very end of the line of code:

Code: Select all

echo '<audio width="'.$this->t['playerwidth'].'" height="'.$this->t['playerheight'].'" style="margin-top: 0px;" controls autoplay>';
And that's it!!! Your videos will play automatically.

Enjoy this great Joomla! extension!
--
Russ
RnR Fusion Media
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Video Autoplay in Phoca Download [SOLVED]

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply