该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Woo Track list and Sample Player

描述

Adds the track list for an album on the WooCommerce products page to the short description.
It will also attempt to discover a sample version of the track and display an audio player for the sample. If no sample is found then just the track title is displayed.

Usage

Once the plugin is activated then the short descriptions of your album products will be updated with the list of tracks.
If you wish to display an audio player that will play a sample of the track, then upload a sample track with the name of the track prefixed with ‘sample-‘. For example if you have a file named ‘WooHoo.mp3’ then create and upload a file call ‘sample-WooHoo.mp3’ in the Media Library.
Creating the samples is not possible with this plugin. I recommend the use of Sound eXchange (SoX) at http://sox.sourceforge.net/
On Linux I use the script

for i in *.mp3 ;
do sox “$i” “sample-basename "$i"” trim 10 30 fade h 1 0 1 ;
done

to convert a whole folders worth of mp3 files to sample files (run the script from the folder). In this example the sample will start 10 seconds into the track, play for 30 seconds, and will fade in and out for 1 second.
The SoX download contains a similar example for Windows.
SoX has a multitude of options and I suggest reading the documentation to get the most out of it.

If you sell both hard copies and virtual versions of your albums, then the track list and sample audio player can be added to the short description of the hard copy provided you follow the naming convention. If your album is ‘The best of WooHoo’ then create products titled ‘The best of WooHoo – Digital Download’ and ‘The best of WooHoo – CD Hardcopy’.

These file naming conventions can be changed by editing the global variables at the top of woo-tlasp.php. There is no options screen.

The audio file sample icon style can be changed by modifying css file css/woo-tlasp.css or overriding the styles in your theme stylesheet.

屏幕截图

  • Album product with track list and sample player

安装

  1. Upload the plugin to your WordPress installation
  2. Activate the plugin through the “Plugins” menu in WordPress.

常见问题

None

评价

2019 年 3 月 3 日
This does exactly what it is supposed to do -find the sample music files and display them for the user to play. The larger files will still be downloaded. Love it. Not a bloated application for once! Thank You! Cathy
阅读所有1条评价

贡献者及开发者

“Woo Track list and Sample Player” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.2 Fixed display problem with play/pause button
1.0.1 Fixed school boy error ‘wp_enqueue_style was called incorrectly’. Thanks to @mikeill and @learning22