Strapi Audio Broadcast Plugin
Strapi Audio Broadcast plugin allows you to broadcast music and stream audio tracks in your Strapi application. This plugin provides a seamless integration for managing and playing audio tracks within the Strapi Admin panel.
Installation
Note: This plugin is currently in an early development stage and is not considered stable. Use it at your own risk.
This installation method will soon be replaced by a more common approach. However, for the time being, you can follow these steps to temporarily test the Strapi Audio Broadcast plugin:
- Install the package using Yarn or npm:
yarn add @ozireh/strapi-audio-broadcast
or
npm install @ozireh/strapi-audio-broadcast
- Open the config/plugins.js file located in your Strapi project and add the plugin configuration to enable it and set the desired protocol:
module.exports = ({ env }) => ({
'strapi-audio-broadcast': {
enabled: true,
config: {
protocol: env('PROTOCOL', 'http'),
},
},
});
- Build the Strapi application:
yarn build
Usage
After installing and configuring the Strapi Audio Broadcast plugin, you can start using it in the Strapi Admin panel.
-
Access the Content Manager in the Strapi Admin panel.
-
You will find a new collection type called "Track". Use this collection to add and upload audio tracks that you want to broadcast.
- Navigate to the "Audio Broadcast" menu item in the Admin panel. Here, you can configure the order of the played tracks and control the audio stream.
-
To start the audio stream, use the following URL: http://localhost:1337/strapi-audio-broadcast/stream
-
You can play or stop the audio stream using the controls provided in the "Audio Broadcast" menu.
Credits
- Broadcast logic https://github.com/WoolDoughnut310/radio-broadcast