Kuvaus
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?
- Fast – pure vanilla JavaScript on the frontend (about 14 KB JS and 5 KB CSS gzipped). No jQuery, no React, loaded only on pages that contain a player.
- Beautiful – 12 modern layouts and 16 one-click color presets that fit any theme.
- Complete – single audio, playlists, waveform, sticky mini player, playback speed, download button and more.
- Accessible – real buttons and sliders with labels, full keyboard support and visible focus.
- Privacy friendly – no tracking and no external services on the frontend.
Key Features
- 12 Player Layouts – Classic, Minimal, Compact, Modern, Card, Podcast, Waveform (SoundCloud-style), Album (cover + tracklist), Bar (slim full-width), Pill (inline), Vinyl (spinning record) and Cover (artwork as background).
- 16 Color Presets – Light, Dark, Midnight, Sunset, Forest, Rose, Ocean, Lavender, Coffee, Monochrome, Graphite, Luxe Gold, Neon, Aurora, Sunset Glow and Deep Sea.
- Toolbar Quick Pickers – change the player layout and color preset directly from the block toolbar with live previews.
- Audio Playlists – unlimited tracks with track numbers, artwork, artist, duration and easy reordering.
- Waveform Player – real audio waveform generated from your file, used as a clickable seek bar.
- Sticky Mini Player – a floating player bar stays at the bottom of the screen while visitors keep reading.
- Podcast Controls – playback speed (0.5x to 3x), skip backward/forward with a custom step and remaining time.
- Full Playback Controls – play/pause, previous/next, seek bar with buffer indicator, volume, mute, repeat (off / all / one) and shuffle.
- Download Button – optional download button for single audio and for each playlist track, with a custom file name.
- Media Session API – lock screen, headphone and notification center controls with title and artwork.
- Resume Playback – optionally continue from where the visitor left off (stored only in the visitor’s browser).
- Responsive Settings – width, padding, margin and typography per device (desktop, tablet, mobile).
- Full Styling – colors, Google Fonts typography, buttons, progress bar, volume, playlist, artwork, border, shadow and spacing.
- Shortcode Support – use
[camelplug_audio_player]in the Classic Editor, widgets and page builders.
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
- Play/pause, previous/next, skip backward/forward, seek by click, drag or keyboard.
- Current time, duration and remaining time.
- Volume slider, mute and default volume.
- Playback speed menu with a default speed and your own list of speeds.
- Repeat track, repeat playlist, shuffle and automatic next track.
- Autoplay, muted start and preload options. Browser autoplay rules are respected: when blocked, the player waits for a click.
- Pause other players automatically and keyboard shortcuts.
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.
External services
The frontend player uses no external services. When you choose a Google Font in the Typography settings and keep ”Load Google Font” on, the font stylesheet is loaded from Google Fonts (https://fonts.googleapis.com) on pages with that player. Google’s privacy policy: https://policies.google.com/privacy
Blocks
This plugin provides 1 block.
- Audio Player Block A modern HTML5 audio player with playlists, waveform, sticky mini player, 12 layouts, podcast controls and an optional download button.
Asennus
- In your WordPress dashboard go to Plugins Add New, search for Audio Player Block, then click Install Now and Activate.
- Or upload the plugin zip from Plugins Add New Upload Plugin, or upload the plugin folder to
/wp-content/plugins/, then activate it. - Open the block editor, click + and insert the Audio Player Block (search ”audio”).
- Choose Single audio or Playlist, select your audio files and pick a layout and color preset.
UKK
-
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.
-
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.
Arvostelut
There are no reviews for this plugin.
Avustajat & Kehittäjät
“Audio Player Block” perustuu avoimeen lähdekoodiin. Seuraavat henkilöt ovat osallistuneet tämän lisäosan kehittämiseen.
AvustajatKäännä “Audio Player Block” omalle kielellesi.
Oletko kiinnostunut kehitystyöstä?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Muutosloki
2.0.1
- Changed: Plugin renamed to ”Audio Player Block”. The plugin slug, block name, shortcode and all settings are unchanged, so existing players keep working.
- Improved: Plugin description and readme.
- New: Plugin icon.
2.0.0
- New: Player Layout picker directly in the block toolbar with vertical list and schematic previews.
- New: Color Presets picker directly in the block toolbar with vertical list and live swatches.
- New: Auto-close dropdown when selecting layouts or color presets in the toolbar for a faster workflow.
- Improved: Popover component for seamless block editing.
- Fixed: Album layout track info and title letter wrapping on narrow containers.
- Fixed: Cover layout background gradient visibility and waveform class conflict.
- Improved: Layout preset configurations and responsive CSS styling.
1.1.0
- New: playlists, 12 designs, 16 color presets, waveform, sticky mini player, speed menu, repeat/shuffle, skip controls, resume position, Media Session, keyboard shortcuts, per-track download, responsive settings, shortcode.
- New: General / Style sidebar with full styling (colors, typography, buttons, progress, volume, playlist, artwork, border, shadow, spacing per device).
- Improved: lightweight vanilla JavaScript player (React and the Iconify icon service are no longer loaded).
- Fixed: border width and border color settings are applied.
- Existing 1.0.0 blocks keep working without changes.
1.0.0
- Initial release.
