搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.2

flutter_audio_player

允許 Flutter 播放本機短音訊(持續時間不超過 30 秒)的外掛程式。

近 30 天下載
32
喜歡數
10
Pub 分數
40

安裝套件

flutter pub add flutter_audio_player

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個專為播放短時本地音訊檔案設計的 Flutter 插件,適合長度不超過 30 秒的聲音。它為在 Flutter 應用中載入和播放音訊資源提供簡單介面。此外,該插件輕量且針對快速音訊播放進行優化,適用於通知、遊戲效果或互動回饋。支援基本的播放控制功能,例如播放、暫停與停止。原始碼公開於 GitHub,確保透明度並方便客製化。

適用情境

  • 播放短音效
  • 在應用程式中實現音頻反饋
  • 為遊戲互動添加聲音
  • 透過音訊提示支援輔助功能

主要特色

  • 用於音訊播放的簡單API
  • 針對短音頻剪輯優化
  • 支援本機檔案播放
  • 基本播放控制(播放/暫停/停止)
  • 開源且公開倉儲

適合對象

  • 遊戲開發者
  • 需要聲音反饋的應用程式設計師
  • 注重可存取性的應用程式
  • 輕量級音訊整合

使用建議

  • 不適合長音頻
  • 僅限本機檔案
  • 不支援串流
  • 沒有高級音訊處理功能

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_audio_player

Plugin that allow flutter to play a local short sound(30 seconds or less in duration).

Install

add flutter_audio_player as a dependency in pubspec.yaml

How to use

  1. add audio file
  2. add asset in pubspec.yaml
  3. you can add audio to player list AudioPlayer.addSound(soundPath);
  4. you can remove all audio in player list AudioPlayer.removeAllSound();

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。