| 开发者 | wpsera |
|---|---|
| 更新时间 | 2026年11月8日 05:51 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[streamsera id="12"], [streamsera_now_playing], [streamsera_listen_button], [streamsera_station] and [streamsera_stations].wp streamsera), a REST API, PHP filters and a JavaScript API. See the FAQ for details.
streamsera folder to /wp-content/plugins/ and activate it on the Plugins screen.[streamsera id="12"]), or turn on the listen page under StreamSera → Settings → General.Yes, as many as you like. Each station has its own streams, logo, now-playing source and page. The station manager lists them all, a single player can switch between them, and the station directory shows them to your listeners.
Supported formats depend on the listener's browser and codecs: MP3, AAC and Ogg/Opus over HTTP(S), plus HLS (.m3u8) and MPEG-DASH (.mpd), which load extra support only when a station uses them. If the connection drops, the player reconnects on its own. Now-playing information (song, artist, listener count) is read from Icecast 2 and Shoutcast 1/2 servers, and the song title from inside the stream itself for hosts without a status page (Zeno, SurferNetwork and many others).
Browsers refuse to play an http:// stream on an https:// page (mixed content). Ask your host for the HTTPS address of the stream (often port 443 or a /stream path on the same host). The dashboard shows a notice for every station with an insecure stream.
To protect your stream server, metadata is fetched by your WordPress site in the background, cached and shared by every listener. The interval is set under StreamSera → Settings → Streams & now playing → Track info refresh (15 seconds by default). While at least one station is published, a light WP-Cron job runs every minute and only contacts stream servers whose cached data has expired; turn off Keep it fresh when nobody listens on the same screen to fetch only while someone is listening.
The listen page opens in its own tab, so it keeps playing while the visitor browses.
The player and blocks work with classic and block themes. StreamSera includes native elements for Elementor, Divi 4 and Divi 5, a Player element for Beaver Builder and Bricks, and its shortcodes work in Breakdance, Oxygen and any other page builder.
StreamSera does not collect listening statistics or send analytics to WPSera. Player scripts and fonts are served locally. Your configured stream provider receives network information when a listener connects, and may have its own logging practices. StreamSera adds suggested privacy-policy text to Settings → Privacy → Policy Guide. See External services and Privacy below.
Turn on StreamSera → Settings → Access & data → Danger zone → Remove all data when the plugin is deleted. When the plugin is deleted, stations, players, saved skins and settings are removed. With the setting off, your content stays so you can reinstall without losing it.
The complete, human-readable source of everything in build/ ships with the plugin:
assets/src/ – the TypeScript/TSX source of the admin app, player, blocks and page-builder elements, and the SCSS source of every stylesheet.package.json, package-lock.json, webpack.config.js and tsconfig.json – the build configuration. The build uses @wordpress/scripts (webpack).build/ from the source, install Node.js 20.19 or newer, open the plugin folder in a terminal and run:
npm ci
npm run build
npm run start rebuilds automatically while you edit. The stylesheets and scripts of the stand-alone pages (assets/css/, assets/js/), the Divi 5 Visual Builder script (assets/divi5/visual-builder.js) and the Divi module definitions (divi5/) are not compiled; they are their own source.
The streaming libraries hls.js and dash.js are installed from npm (hls.js and dashjs in package.json) and bundled into build/hls.js and build/dash.js by the same build. Their source code is in the linked repositories; versions and licenses are listed under Credits.
Yes. StreamSera Pro is a separate add-on with schedules, requests, statistics, a sticky player, playlists and more. The free plugin works fully on its own and is not limited in time or in the number of stations.
Yes. WP-CLI: wp streamsera station (including import-csv for a CSV with title and stream_url columns, optionally slogan, website, genre and logo as a Media Library ID), wp streamsera player, wp streamsera cache, wp streamsera health check, wp streamsera export and wp streamsera settings. There is also a streamsera/v1 REST API, PHP filters for layouts, skins, page elements and metadata sources, and a window.StreamSera JavaScript API.