
內容簡介
「Simple Audioplayer」是一個 WordPress 外掛,旨在為在您的 WordPress 網站中播放音頻文件提供更好的體驗。
相較於其他為 WordPress 設計的音頻播放器,這個「簡單音頻播放器」更注重簡潔、易用和通過 CSS 可自定義。
使用 HTML5 特性和純 JavaScript 設計,它能與大多數瀏覽器兼容,而且不會增加任何額外的負擔。這是一個簡單、流線型的解決方案,可以播放 MP3 或 OGG 文件。
如果您想運行一個播客網站,您可能需要其他不同的選擇,但如果您只是偶爾需要整合一個音頻文件,這個外掛可能是最好的選擇。
功能:
儘管簡單,「簡單音頻播放器」擁有所有你需要的功能。
- 自動檢測瀏覽器是否可以播放 OGG 文件。提供 OGG 文件可以節省流量和帶寬,因為這種格式有更好的壓縮效果。
- 播放器可以顯示任意圖像,放在控制元件旁邊。您可以用它來顯示封面圖像、您的標誌或其他內容。如果您不需要,播放器仍然可以適應。
- 控制元件可以使用 SVG 元素。基於向量的控制元件使播放器在任何顯示器和分辨率下都有很棒的外觀效果。控制元件的設計靈感來自材料設計,提供了不會阻礙視線、但看起來很好的體驗。
- 便於自定義風格。所有播放器元件都可以通過 CSS 指令或「簡單音頻播放器」短碼內的控制元件直接進行設置。這使得您可以無縫地整合播放器到您的頁面。預設樣式看起來不錯,並且會繼承您網頁的設計風格。
- 在一個頁面上放置多個播放器。您可以在同一頁面上放置多個播放器,它們之間相互獨立。每個播放器都會保持自己的設置,如曲目位置和音量,開始播放一個播放器會暫停正在運行的其他播放器。
購買和安裝:
「簡單音頻播放器」是免費的,可以從 WordPress 外掛目錄安裝。
如果您想為自由軟件和作者(以及他們對咖啡因的依賴)提供支持,您可以從 Gumroad 購買其「PREMIUM DELUXE GOLD EDITION」版本(請參閱捐贈鏈接)。這不會增加任何功能,也不會改變外掛程序的運作方式,甚至不需要輸入序列號。
它唯一的用途是讓您感到好一點,因為在 WP 生態系統越來越商業化的時代,外掛和主題目錄已經成為誘騙您購買「優化版」的地方,因為免費版已經被削弱了功能。
使用方法:
安裝並啟用插件後,您可以通過短碼在文章和頁面中使用它:
[simple-audioplayer title="" subtitle="" mp3="" ogg="" color="" image=""]
理論上來說,您可以省略除 mp3 參數之外的所有內容,但那會不好玩。因此,讓我們看看這些參數。
- 標題:這可以是任何文本值,如集名、曲目名等等。您的想像力是極限。
- 副標題:副標題可以是您的播客名稱、演講者或話題的附加信息。
- MP3:這必須是指向 MP3 文件的連結。盡管它不必保存在您的 WordPress 站點中,但這是建議的,以實現最佳性能。
- OGG:您也可以選擇提供到 OGG 文件的連結。OGG 的壓縮效果比 MP3 更好,因此建議使用。
外掛標籤
開發者團隊
原文外掛簡介
“Simple Audioplayer” is a plugin for WordPress which aims to provide a somewhat better experience for playing audiofiles in your WordPress site.
While other Audioplayers for WordPress try to impress with visualization and features nobody really needs, the main focus for developing “Simple Audioplayer” was simplicity, ease of use and customizability right through CSS.
By using HTML5 features and pure JavaScript it is compatible to a wide variety of browsers and brings no overhead with itself. It’s a simple, sleek solution to play MP3 or OGG files.
If you’re looking to run a podcast site, you might need something different, but if you want to occasionally integrate an audiofile, probably look no further.
Features
While being quite simplistic, Simple Audioplayer packs all the features you’ll need.
Automatic detection whether the browser can play OGG files. If you provide OGG files, you’ll save on traffic and your user on bandwith due to better compression of this format.
The player can show an image of your choice right next to its controls. Use it for “cover art”, your logo or whatever. Leave it out and the player will adapt to that, too.
SVG elements for controls. Vector-based graphics for the control elements make sure that the player looks great on any display and resolution. No “pixelated edges”. The controls are inspired by material design to provide an unobstrusive, yet good looking experience.
Easy styling. All player elements can either be styled by CSS instructions or, in case of the controls, directly from within the shortcode. This allows you to seamlessly integrate the player into your page. Default styles look good, though and will inherit the design from your page.
Multiple players on one page. You can have multiple players on one page and they are all independent from each other. Each one will keep its own settings, like track position and volume, and starting to play one player will pause any other running player at its current position.
Purchase & Installation
“Simple Audioplayer” is free and can be installed from the WordPress plugin directory.
If you want to feel better, you can purchase a “PREMIUM DELUXE GOLD EDITION” of this plugin from Gumroad (see donation link). This will add nothing in features, change nothing in how the plugin works, you don’t even have to enter a serial number.
It’s only purpose is to have a good feeling about supporting free software and its authors (and their caffeine addiction), especially in times where the WP ecosystem is getting more and more commercialized and the plugin and theme directory have become a place to lure you into buying “premium versions”, because the free versions of items are totally feature-crippled.
Usage
After installing and activating the plugin, you can use it through a shortcode in your posts and pages:
[simple-audioplayer title="" subtitle="" mp3="" ogg="" color="" image=""]
Theoretically you could omit everything but the mp3-parameter, but that would be no fun. So, let’s have a look at the parameters.
title This can be any text value, like episode name, title of the track and whatnot. Your imagination is the limit.
subtitle Subtitle could be the name of your podcast, additional information on the speaker or the topic.
mp3 This must be a link to a MP3 file. Although it must not be saved in your WordPress site this is recommended for maximum performance.
ogg Optionally you can also provide a link to an OGG file. OGG has better compression than MP3 and will therefore save traffic. Not all browsers support OGG but the player will check that by itself.
color This can be any valid CSS color value, default ist #000 for black controls. Change it to your needs or omit the parameter for black controls.
image Optionally show an image on the left side of the player for cover art or something else. Quadratic images look best.
Questions
Feel free to use the WordPress support system for further questions regarding use or features of the plugin. Please do not contact me regarding problems like general plugin installation and alike. There are really good tutorials regarding those topics out here in the internet.
