jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => General => Topic started by: coute on 31.07.2024 14:40:21

Title: Issue with preview player
Post by: coute on 31.07.2024 14:40:21
Hello,

I'm trying to restore an old site that was using jdownloads 1.9.

Files are available but i have an issue with the preview player.
Files seems to use the old tag {play} and not {preview_player}
I don't know where to change this. (template maybe ?)
Title: Re:cron and special char
Post by: ColinM on 01.08.2024 10:49:00
Hi
Have you looked at the article
https://www.jdownloads.net/documentation/faq-v3-9/adding-preview-files

Colin
Title: Re: Issue with preview player
Post by: coute on 01.08.2024 11:08:07
Hello,
Yes, this was helpful.
I think I need to figure out how the (very) old layout imported from the SQL restore was created or change it to a newer layout.
Title: Re: Issue with preview player
Post by: ColinM on 02.08.2024 00:53:15
Hi
inthe Layouts there are 2 placeholders relating to previews
{preview_player} {preview_url}
For example the Downloads Layout 'Files Layout Full Info v3.9' includes  {preview_player}
in a section like
 <!-- download description, preview and screen shots-->
        <div class="jd_main {featured_class}" style="">
            <div class="jd_description_wrapper">{description}</div>
            <div class="jd_preview" style="">{preview_player} {mp3_id3_tag}</div>

Colin
Title: Re: Issue with preview player
Post by: coute on 11.08.2024 10:19:36
Hello Colin,
I have a last question about the preview player. I would like add controlslist="nodownload" in the audio html5 tag. Where can i change this ?
Thanks.
Title: Re: Issue with preview player
Post by: coute on 11.08.2024 10:28:02
Found it in "com_jdownloads/src/Helper/JDHelper.php"
I changed it in this file statically but it would be nice to have a configuration option to handle this.
Title: preview
Post by: ColinM on 11.08.2024 10:46:41
Hi
Please read article
https://www.jdownloads.net/documentation/faq-v3-9/adding-preview-files
I assme you have a video file that you do not want people to download when looking at it with a video presentation.  So you have a shorter 'taster' version that you use as the preview.  The main video is only available as a regular downloadable file to allowed users.  Several browsers defeat the "nodownload".
Colin