這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

PlayPress

外掛說明

Some WordPress audio plugins inject JavaScript into every page of your website, even pages that don’t have any audio on them. PlayPress doesn’t need any JavaScript.

Other plugins rely on Adobe’s displeasing Flash technology. PlayPress can fall back or default to HTML5 audio – without any JavaScript voodoo wizardry.

Other plugins can play videos and make you tea. PlayPress has a laser focus on just one thing: it lets you put an audio player in blog posts and pages.

You use a standard WordPress shortcode like this:

[audio mp3="http://example.com/bells.mp3" ogg="http://example.com/bells.ogg"]

Users of most modern browsers will see a native HTML5 audio player. In older browsers, an adequate Flash-based one will be shown.

You don’t even need an Ogg Vorbis file:

[audio mp3="http://example.com/bells.mp3"]

In this case, PlayPress will first attempt to show the Flash player. If Flash isn’t installed, readers will see the HTML5 audio player – but it won’t work in Firefox or Opera. (Most Firefox and Opera users should have Flash installed.)

In either case, if neither Flash nor HTML5 are supported by the browser, users will see a link to download the audio file. Graceful degradation.

Optionally, specify a title and/or artist for display in the Flash player (this will override the ID3 metadata embedded in your MP3 file, which is otherwise used if present):

[audio mp3="http://example.com/bells.mp3" title="Imagine" artist="John Lennon"]

The author’s website has PlayPress running live right there on it.

螢幕擷圖

  • An example of a browser's inbuilt native HTML5 audio player (Google Chrome on Windows 7)
  • The Flash audio player (taken from Martin Laine's legendary WordPress Audio Player plugin)

安裝方式

You should really use the plugin browser and installer built into your WordPress admin panel. But you can do it the old way:

  1. Upload the /playpress/ directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

For optimal results, place a copy of htaccess.txt wherever you will be hosting audio files, and rename this .htaccess.

Now enjoy using the shortcode syntax in your posts and pages:

[audio mp3="http://example.com/bells.mp3" ogg="http://example.com/bells.ogg" title="Winnie the Pooh" artist="AA Milne"]  

[audio mp3="http://example.com/bells.mp3"]

常見問題集

Installation Instructions

You should really use the plugin browser and installer built into your WordPress admin panel. But you can do it the old way:

  1. Upload the /playpress/ directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

For optimal results, place a copy of htaccess.txt wherever you will be hosting audio files, and rename this .htaccess.

Now enjoy using the shortcode syntax in your posts and pages:

[audio mp3="http://example.com/bells.mp3" ogg="http://example.com/bells.ogg" title="Winnie the Pooh" artist="AA Milne"]  

[audio mp3="http://example.com/bells.mp3"]

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈PlayPress〉的開發相關工作。

參與者

將〈PlayPress〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.1

  • If either artist="" or title="", no text is shown on the Flash player.

1.2

  • Added optional artist and title shortcode attributes.

1.1.1

  • Fixed misleading typo in code comments.

1.1

  • Rearranged the code to make lots more sense.
  • Made it easier for more confident users to customise the Flash player.

1.0

  • Is the loneliest number. The very first version of PlayPress.