
內容簡介
總結:DS Custom Audio Player是一個輕量、靈活且可存取替代品,可替代WordPress預設的音訊播放器。主要針對想要更多控制音訊內嵌外觀和功能的部落客、播客和音樂家。
### 問題與答案:
1. DS Custom Audio Player主要針對哪些使用者?
- 主要針對部落客、播客和音樂家。
2. 這個外掛的功能特色有哪些?
- 可自訂播放器的寬度和顏色、具備正常和緊湊檢視模式、展示音訊檔的元數據以及可選的靜音控制、可選的下載按鈕、支援響應式設計、無須外部庫、具有無障礙控制和支援Gutenberg和經典編輯器。
3. 使用[dscap_audio]短代碼時,有哪些可用屬性可覆寫全局預設?
- 必要的src屬性、寬度、顏色、背景、圖示、緊湊檢視、展示元數據、展示音量控制、展示下載按鈕、以及對齊位置。
外掛標籤
開發者團隊
原文外掛簡介
The DS Custom Audio Player provides a lightweight, flexible and accessible alternative to the default WordPress audio player. It is designed for bloggers, podcasters and musicians who want more control over the look and functionality of their audio embeds without functionality overkill. It’s still just a simple player.
Comes with Language files for German, French, Spanish and Italian WordPress Installations
Features
Customizable player width and colors (buttons, icons, background)
Normal, compact and super compact view modes
Metadata display (Artist – Title) read directly from audio files (MP3, OGG, FLAC, M4A, AAC)
Optional volume control with instant mute/unmute
Optional download button (filename based on metadata or original file name)
Responsive design that works on desktop and mobile devices
Lightweight: no external libraries required
Accessibility-friendly controls (ARIA labels, keyboard navigation)
Works with both Gutenberg (Block Editor) and the Classic Editor
This plugin uses the text domain ds-custom-audio-player.
Shortcode Usage
Basic example:
[dscap_audio src=”https://example.com/audio/song.mp3″]
Available attributes (override global defaults):
src – required, URL to the audio file.
width – CSS value, e.g. 400px or 100%.
color – Button background color, e.g. #0073e6.
bg – Player background color.
icon – SVG icon color, e.g. #ffffff.
compact – 0 = normal view incl. Metadata, 1 = compact view, 2 = super compact view
show_volume – 1 = show volume control, 0 = hide.
show_download – 1 = show download button, 0 = hide.
align – alignment: left, center, or right.
Example with overrides:
[dscap_audio src=”https://example.com/audio/podcast.mp3
” width=”100%” color=”#ff0000″ icon=”#000000″ compact=”1″ show_download=”0″ align=”center”]
