| 开发者 | tlloancy |
|---|---|
| 更新时间 | 2026年11月14日 00:03 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[sr42_radio] on a page. It shows the now-playing title and, since version 2.3, can switch between audio and video if your server has the video option on. Any Icecast-compatible player works too.
How it works
The plugin never exposes your server token to the browser. Every action goes through your WordPress server, which calls the radio API. The token is stored in the database (or in wp-config.php) and is never printed in a page.
A host who connects to the live port takes the air immediately, over the playlist; when they disconnect, the playlist resumes by itself.
Requirements
A running Radio 42 server (see the playbook repository) and its API URL and token.
Docs: docs/USER-GUIDE.md (English) and docs/MODE-DEMPLOI.md (French).
https://radio.example.com:5000) and the API token chosen when you installed the server.wp-config.php:
define( 'R42CC_API_URL', 'https://radio.example.com:5000' );
define( 'R42CC_API_TOKEN', 'your-token' );No. It talks to the Radio 42 control API, which is installed by the Radio 42 Server playbook. Listeners can still use any Icecast-compatible player.
Users with the manage_options capability (administrators). Change it with the r42cc_capability filter.
Icecast buffers the stream: expect 10 to 15 seconds between the host and the listeners.
Removing a sound keeps the file on the server in a separate folder: it is never played, and you can put it back with one click. Delete erases it for good.
Not in this version: the broadcast engine can add to the queue but not edit it. Use "Next track" instead.
Simple Radio Forty Two is the companion player (it reads the same stream and now-playing data). Any player that understands an Icecast stream also works.
Yes. Put it behind HTTPS (a reverse proxy) so the token does not travel in clear text.
docs/USER-GUIDE.md (English) and docs/MODE-DEMPLOI.md (French).