Introduction
Further you may add a preview file, which is generally a short version of the downloadable file. If you do not add a preview file then jDownloads will use the main downloadable file as the preview.
If you require visitors to have login accounts on your site, to pay for the file or similar in a Download please note that these requirements are easily circumvented for both audio and video file download. If you show a full sized audio or video please note that most browsers will be able download what is showing. There is no known and reliable way of inhibiting that ability in browsers.
So we would strongly recommend that you create a short preview as a separate file. There is a note at the bottom of this article on a simple ways to make a preview file using web based services. That is your Downloads will have two different files, one as a short previw and the other as the enire audio or video file.
The Audio preview file may be shown as a simple control bar, or if an mp3 file optionally also with additional details.

Most of the standard layouts already have the {preview_player} in place. This just shows the location and name of the relevant preview file.
Options Settings
The first thing is to decide if the audio and video support is to be through HTML5 elements or by using the Flowplayer addon. That is set either 'Use HTLM5 Eelements' or 'Activate Flow Payer' to Yes.
The Video width and height options are set as maximum values. jDownloads will use the appropriate one so that the actual aspect ratio is maintained.
As usual if the first option is set to No then the other four options are hidden.
The other part that may need setting is the MP3 details mini layout.
This is also in the

User Groups settings
In the
jDownloads supports mp3, wav, wma and oga audio files and mp4, webm, ogv and ogg video files.
Also in the

Here we show adding in the Front End, adding in the backend is very similar.
The Files tab in the Create/Edit form is the place where the preview is added as illustrated opposite.
The 'Allowed Preview File Types' of preview file and the permitted 'Maximum Upload Size in kB' needs to be set for each User Group that has permission to create or edit a Download.
One could also allow ogg types which are assumed as video.

Making a Preview
For audio previews a simple effective and free service is at https://audiotrimmer.com (opens in new window/tab)
Similarly for videos https://online-video-cutter.com/ (opens in a new window/tab)
ColinM July 2019 modified June 2023, March 2025, May 2025
