Audio preview/play

Viewing 5 posts - 1 through 5 (of 5 total)
#117414

Arakelian Namete
Participant

I have seen in the readme file that you added this feature to the free version.
However i can`t find any audio option when creating a download file.
Does it require some shortcode ?
And the audio player template is not present either… or is it?
How does it work? some documentation would be very helpful.
Thank you.

#117424

Nayeem Riddhi
Moderator

Hi,

You have to use this shortcode https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/ for showing in a page or post in collection form for categories or have to use this shortcode for single package https://www.wpdownloadmanager.com/doc/short-codes/. You have to specify template name link-template-audio in shortcode. And when you are creating package you have to select from page template Default Template. Thus you will get preview like as the image attached.

image1

image2

Thanks.

#117601

Arakelian Namete
Participant

Ok. Thank you. Does the player work with the “all downloads” table ? I mean the shortcode that shows all the downloads in that nice, organized table.

#117713

Nayeem Riddhi
Moderator
#117714

Arakelian Namete
Participant

I mean if it works with the shortode that lists all the downloads using the “wpdm-all-downloads.php” template. I can see the line 318 in this template:

case 'audio_player':
 $data['files'] = \WPDM\Package::getFiles($data['ID']);.......
......

so i guess it should work.
But i don`t know how is this template deciding which download is an audio so it can add the preview player.
Is there something i should add to all the audio downloads ?

—————
EDIT
—————

I tried like this:

[wpdm_all_packages items_per_page="20" jstable=1 order_by="field_name" order="ASC/DESC" cols="title,file_count,download_count|categories|update_date|audio_player|download_link" colheads="Title|Categories|Update Date|Preview|Download::155px"]

It does show the Preview column but no audio player.

I only have audio downloads… no other format but mp3

Did i do something wrong?

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Audio preview/play’ is closed to new replies.