Linux 软件免费装
Banner图

Audio Player Block

开发者 camelplug26
更新时间 2026年11月18日 22:16
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

mp3 player music player playlist audio player podcast player

下载

1.0.0 2.0.0 2.0.1

详情介绍:

Audio Player Block is a lightweight, accessible HTML5 audio player for the WordPress block editor (Gutenberg). Add an MP3 player, music playlist or podcast player to any post or page in seconds. Pick a file from the Media Library (or paste any audio URL), choose one of 12 player layouts and style it from the block toolbar or sidebar. The editor shows the real, playable player, so what you see is exactly what your visitors get. Built for musicians, podcasters, bands, record labels, course creators, churches, radio stations and bloggers who need a beautiful audio player without slowing down their website. Why choose Audio Player Block? Key Features Supported Audio Formats MP3, WAV, OGG, M4A / AAC, FLAC and WebM – any format the visitor's browser can play. Use files from your Media Library or external URLs. Title, artist, album and cover artwork are filled automatically from the file's ID3 tags when picked from the Media Library. Playback Shortcode Single audio: [camelplug_audio_player src="https://example.com/song.mp3" title="Song" artist="Band" cover="https://example.com/cover.jpg" layout="modern"] Playlist: [camelplug_audio_player urls="https://example.com/one.mp3, https://example.com/two.mp3" titles="One, Two" playlist_title="My mix" layout="card"] Attributes: src, title, artist, album, cover, description, urls, titles, playlist_title, layout (classic, minimal, compact, modern, card, podcast, waveform, album, bar, pill, vinyl, cover), download, autoplay, loop, waveform, sticky, speed (yes/no), width.

安装:

  1. In your WordPress dashboard go to Plugins → Add New, search for Audio Player Block, then click Install Now and Activate.
  2. Or upload the plugin zip from Plugins → Add New → Upload Plugin, or upload the plugin folder to /wp-content/plugins/, then activate it.
  3. Open the block editor, click + and insert the Audio Player Block (search "audio").
  4. Choose Single audio or Playlist, select your audio files and pick a layout and color preset.

升级注意事项:

2.0.1 The plugin is now called "Audio Player Block". Nothing else changes: your existing players, shortcodes and settings keep working.

常见问题:

How do I add an audio player to a post or page?

Open the block editor, click the + button, search for "Audio Player Block" and insert it. Select an audio file from the Media Library or paste an audio URL.

Can I create an audio playlist?

Yes. Choose Playlist as the source type and add as many tracks as you like. You can reorder, duplicate and remove tracks in the editor.

Is it a good podcast player?

Yes. The Podcast layout includes playback speed, skip backward/forward, remaining time, resume playback and lock screen controls.

Will my existing players change after updating?

No. Blocks created with previous versions keep their settings and render with their selected design. The block name, shortcode and settings are unchanged.

Can I use it with the Classic Editor or a page builder?

Yes. Use the [camelplug_audio_player] shortcode anywhere shortcodes are supported.

Why does autoplay not start?

Browsers block autoplay until the visitor interacts with the site. The player then waits for a click. This cannot be bypassed by any plugin.

Why is the waveform an approximation for some files?

The waveform is read from the audio data. Files hosted on another domain can only be read when that server allows it (CORS); otherwise an approximate shape is shown. It still works as a seek bar.

Does it work with any theme?

Yes. All player styles are scoped to the block and theme button styles are reset inside the player.

Does the download button work for files on other domains?

Browsers ignore the download file name for other domains. The player then downloads the file when the server allows it (CORS) or opens it in a new tab.

Will it slow down my website?

No. The frontend uses about 14 KB of JavaScript and 5 KB of CSS (gzipped), without jQuery or React, and loads only on pages that contain a player.

更新日志:

2.0.1 2.0.0 1.1.0 1.0.0