[WordPress] 外掛分享: Simple Radio Forty Two

首頁外掛目錄 › Simple Radio Forty Two
WordPress 外掛 Simple Radio Forty Two 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
15 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v2.2.0 上架:2024-10-05

內容簡介

Simple Radio Forty Two 是一個小型的 WordPress 收音機播放器,靈感來自 Radio 42。它使用原生 JavaScript 編寫,讓使用者可以輕鬆配置電台並在任何頁面上播放音樂。

【主要功能】
• 播放 Icecast / MPC、SomaFM 和 Radio Paradise 流媒體
• 顯示現在播放的元數據(藝術家、歌曲標題等)
• 記住最後的電台和音量設置
• 支援 Media Session API,提供播放控制
• 可自訂標題和按鈕/背景圖片
• 從公共 Radio Browser 目錄尋找電台

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Radio Forty Two」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Simple Radio Forty Two is a small radio player for WordPress, inspired by Radio 42. It is written in vanilla JavaScript (no jQuery). You configure stations once, then drop the player on any page with [sr42_radio] or the Simple Radio Forty Two block.
What it does

Plays Icecast / MPC, SomaFM, and Radio Paradise streams from a dropdown.
Shows now-playing metadata (artist, title, next track when the source provides it) via the REST route /wp-json/sr42/v1/meta.
On supporting mobile browsers, uses the Media Session API: lock-screen title, artwork, play/pause, and previous/next station.
Remembers the last station and volume in localStorage. If you navigate to another page that also contains the player, it tries to resume playback. See the FAQ: browsers often block that autoplay.
Optional custom title and button/background images under Simple Radio → Styling.
Optional Find stations on Settings: the public Radio Browser directory fetches real streams. If WordPress AI is enabled, it assembles a 3–6 station lineup only from those results (no invented URLs). Without AI, the first six hits fill the form. Nothing is saved until you click Save Changes.

This plugin does not keep audio playing across a full page load by itself (no background Service Worker). Media Session controls work while the tab that started playback stays open, including with the phone locked.
Configuration

Simple Radio — copy the shortcode.
Settings — station name, stream URL, and server type (Icecast / SomaFM / Radio Paradise).
Styling — title and image URLs, with a live preview. Save to apply on the public player.

Usage

Shortcode: [sr42_radio]
Block: Simple Radio Forty Two (Media category). Dynamic render: the same HTML as the shortcode. Stations always come from Settings (no per-block station list).

There is no separate classic widget. On a classic widget screen you can put the shortcode in a Shortcode or Custom HTML widget.
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.

延伸相關外掛

文章
Filter
Mastodon