@ozireh/strapi-audio-broadcast

0.1.0-alpha.1 • Public • Published

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:

  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.

  2. You will find a new collection type called "Track". Use this collection to add and upload audio tracks that you want to broadcast.

Capture d’écran 2023-05-18 à 21 52 00

  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.

Capture d’écran 2023-05-18 à 22 19 24

  1. To start the audio stream, use the following URL: http://localhost:1337/strapi-audio-broadcast/stream

  2. You can play or stop the audio stream using the controls provided in the "Audio Broadcast" menu.

Credits

Readme

Keywords

none

Package Sidebar

Install

npm i @ozireh/strapi-audio-broadcast

Weekly Downloads

1

Version

0.1.0-alpha.1

License

MIT

Unpacked Size

40.4 kB

Total Files

42

Last publish

Collaborators

  • ozireh