Simple Radio Forty Two

外掛說明

Simple Radio Forty Two is a minimalist yet powerful radio player plugin for WordPress, inspired by the Spirit of 42. Built with Vanilla JavaScript, it ensures zero dependencies and lightning-fast loading times.

The player features a unique “Smart Buffer” system that synchronizes with your page load, a “Persistence Engine” that remembers your last selected station after a refresh (F5), and a Click Lock mechanism to prevent interface spamming, providing a seamless listening experience.

Configuration

  1. After activation, go to Settings > Simple Radio Forty Two to configure your radio player.
  2. Multi-Station Support: Add, remove, or reorder your favorite Icecast, SomaFM, or Radio Paradise streams.
  3. One-Click Copy: Easily copy the [sr42_radio] shortcode from the dashboard using the integrated clipboard tool.
  4. Customize the style via the provided CSS file or by adding rules in your theme.

Usage

  • Add the radio player to your content with the [sr42_radio] shortcode.

License

Simple Radio Forty Two is licensed under the GPLv2 or later. See LICENSE.txt for details.

Acknowledgments

Thanks to the WordPress community and the Radio 42 developers for the inspiration.

螢幕擷圖

安裝方式

  1. Download the Simple Radio Forty Two ZIP file.
  2. Log in to your WordPress Dashboard.
  3. Go to Plugins > Add New and click Upload Plugin.
  4. Choose the ZIP file and click Install Now.
  5. Activate the plugin.

常見問題集

Why is there a “Please Wait” message at startup?

This is the Smart Buffer. It locks the interface for 5 seconds to allow the browser to properly cache the initial audio stream for a glitch-free experience.

Does it remember my station after a page refresh?

Yes. Starting from version 1.3.1, the player uses localStorage to keep your selection active even if you reload the page.

Does it support mobile devices?

Yes. The player is fully responsive and optimized for touch controls.

使用者評論

閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

將〈Simple Radio Forty Two〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3.1

  • Fix: Corrected the Shortcode copy tool to support modern Clipboard API and added UI feedback.
  • Fix: Implemented station persistence (F5) via localStorage.
  • Fix: Added default “fallback” stations if the database is empty (Radio 42, SomaFM, Radio Paradise).
  • Fix: Resolved a regression where the selected station was reset on initial load.

1.3.0

  • Way cleaner UI and overall performance optimization.
  • Final stable release for WordPress 6.9.
  • Integrated Icecast/SomaFM metadata (Artist/Title) via AJAX.
  • Added “Laser Glow” visual effect on the volume slider.
  • Synchronized initial buffer with page load cycle.

1.2.3

  • Switched to pure Vanilla JS (jQuery-free).
  • Added 4 predefined radio stations.
  • Added Click Lock mechanism to prevent UI spamming.

1.2.2

  • Fixed shortcode detection bug.
  • Updated compatibility for WordPress 6.7.

1.0

  • First stable version.
  • Added basic radio player and customization options.