定制 zerosonesfun/flarum-sound-system 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zerosonesfun/flarum-sound-system

最新稳定版本:2.0.2

Composer 安装命令:

composer require zerosonesfun/flarum-sound-system

包简介

Inline audio links and a persistent global audio bar powered by howler.js.

README 文档

README

Sound System adds audio to your Flarum forum: inline playable links in posts and an optional bottom bar player. For Flarum 2.x.

  • Inline audio — Links to .mp3, .wav, or .ogg in posts become click-to-play players.
  • Global player — A bar at the bottom of the page with play/pause, previous/next, progress, and volume. You upload the tracks in the admin.
  • App sounds — Optional short sound when users open a discussion (e.g. a click).

Requirements

  • Flarum 2.x
  • PHP 8.2 or higher

Installation

From your Flarum root (where composer.json lives), run:

composer require zerosonesfun/flarum-sound-system

Then in the admin panel, go to Extensions, find Sound System, and enable it.

Updating

From your Flarum root:

composer update zerosonesfun/flarum-sound-system

Then clear the Flarum cache (admin → Clear cache or php flarum cache:clear). Reload the forum so the browser picks up any changed assets.

Removal

  1. In the admin, go to Extensions, find Sound System, and Disable it.
  2. From your Flarum root, run:
    composer remove zerosonesfun/flarum-sound-system
  3. Clear the cache and reload the forum.

Settings

All settings are under AdministrationExtensionsSound System (click the gear).

Setting What it does
Enable inline audio link player Turns links to audio files (e.g. .mp3) in post content into a small play/pause button. Users click to play or pause.
Enable global bottom audio bar Shows a bar at the bottom of the forum with a playlist. You add tracks in the Tracks section below. Users get play/pause, previous/next, progress bar, and volume.
Tracks The playlist for the global bar. Use Add track to upload files and set title/artist. You can reorder by dragging.
App sounds When on, a short click sound plays when someone opens a discussion by clicking or tapping a discussion in the list. The sound file is included in the extension.
Dev console debugging For troubleshooting. When on, the extension logs extra messages in the browser console. Leave off for normal use.

Repository

Source code and issue tracker:
https://github.com/zerosonesfun/flarum-sound-system

License: MIT.

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固