0.1.0-alpha.1 • Published 11 months ago

@ozireh/strapi-audio-broadcast v0.1.0-alpha.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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.

You can follow these steps to test the Strapi Audio Broadcast plugin:

  1. Install the package using Yarn or npm:
yarn add @ozireh/strapi-audio-broadcast

or

npm install @ozireh/strapi-audio-broadcast
  1. 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'),
    },
  },
});
  1. 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.

  1. Access the Content Manager in the Strapi Admin panel.
  1. You will find a new collection type called "Track". Use this collection to add and upload audio tracks that you want to broadcast.
  1. 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.
  1. To start the audio stream, use the following URL: http://localhost:1337/strapi-audio-broadcast/stream
  1. You can play or stop the audio stream using the controls provided in the "Audio Broadcast" menu.

Credits