| 开发者 | camelplug26 |
|---|---|
| 更新时间 | 2026年11月18日 22:16 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[camelplug_audio_player] in the Classic Editor, widgets and page builders.[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.
/wp-content/plugins/, then activate it.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.
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.
Yes. The Podcast layout includes playback speed, skip backward/forward, remaining time, resume playback and lock screen controls.
No. Blocks created with previous versions keep their settings and render with their selected design. The block name, shortcode and settings are unchanged.
Yes. Use the [camelplug_audio_player] shortcode anywhere shortcodes are supported.
Browsers block autoplay until the visitor interacts with the site. The player then waits for a click. This cannot be bypassed by any plugin.
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.
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.
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.