# @ozireh/strapi-audio-broadcast

> A plugin for Strapi to broadcast audio files.

Latest version **0.1.0-alpha.1** (published 2023-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ozireh/strapi-audio-broadcast
pnpm add @ozireh/strapi-audio-broadcast
yarn add @ozireh/strapi-audio-broadcast
bun add @ozireh/strapi-audio-broadcast
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.1 |
| Published | 2023-05-24 |
| First published | 2023-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.19.1 <=18.x.x |
| Dependencies | 8 |
| Unpacked size | 39.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | @ozireh |
| Maintainers | ozireh |

## Links

- npm: https://www.npmjs.com/package/@ozireh/strapi-audio-broadcast
- npm.io page: https://npm.io/package/@ozireh/strapi-audio-broadcast

## Dependencies (8)

- [uuid](https://npm.io/package/uuid.md) ^9.0.0
- [throttle](https://npm.io/package/throttle.md) ^1.0.3
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@strapi/icons](https://npm.io/package/@strapi/icons.md) ^1.6.3
- [@dropb/ffprobe](https://npm.io/package/@dropb/ffprobe.md) ^3.0.0
- [ffprobe-static](https://npm.io/package/ffprobe-static.md) ^3.1.0
- [@strapi/design-system](https://npm.io/package/@strapi/design-system.md) ^1.6.3
- [@strapi/helper-plugin](https://npm.io/package/@strapi/helper-plugin.md) ^4.6.0

## Recent versions

- 0.1.0-alpha.1 (latest) — 2023-05-24
- 0.1.0-alpha.2 (alpha) — 2023-06-06

## README

# 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:

```sh
yarn add @ozireh/strapi-audio-broadcast
```

or

```sh
npm install @ozireh/strapi-audio-broadcast
```

2. Open the config/plugins.js file located in your Strapi project and add the plugin configuration to enable it and set the desired protocol:

```javascript
module.exports = ({ env }) => ({
  'strapi-audio-broadcast': {
    enabled: true,
    config: {
      protocol: env('PROTOCOL', 'http'),
    },
  },
});
```

3. Build the Strapi application:

```sh
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.

<img width="1437" alt="Capture d’écran 2023-05-18 à 21 52 00" src="https://github.com/ozireh/strapi-audio-broadcast/assets/34472082/362b8019-c71a-48b4-9acd-9db40d90f133">

3. 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.

<img width="1438" alt="Capture d’écran 2023-05-18 à 22 19 24" src="https://github.com/ozireh/strapi-audio-broadcast/assets/34472082/2a515d44-cb0e-4648-ba08-daa79d2eac80">

4. To start the audio stream, use the following URL: [http://localhost:1337/strapi-audio-broadcast/stream](http://localhost:1337/strapi-audio-broadcast/stream)


5. 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](https://github.com/WoolDoughnut310/radio-broadcast)

---
_Source: https://npm.io/package/@ozireh/strapi-audio-broadcast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
