News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Issue with preview player

Started by coute, 31.07.2024 14:40:21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

coute

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 ?)
Le son qui a du sens
  •  

ColinM

Colin M
  •  

coute

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.
Le son qui a du sens
  •  

ColinM

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
Colin M
  •  

coute

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.
Le son qui a du sens
  •  

coute

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.
Le son qui a du sens
  •  

ColinM

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
Colin M
  •