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

套件詳情v0.0.2

flutter_visualizers

一個用於可視化正在播放的音訊(僅限 Android)的 Flutter 外掛程式。

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

安裝套件

flutter pub add flutter_visualizers

套件介紹

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

flutter_visualizers 是一個專為 Android 設備設計的 Flutter 插件,用於視覺化音訊播放。它提供音訊信號的即時視覺表示,非常適合音樂播放器或音訊分析應用。該插件利用 Android 內建的視覺化 API,直接在應用介面中渲染波形或頻譜圖。目前僅支援 Android,限制了其跨平台使用。開發者可透過 pub.dev 輕鬆整合,並自訂視覺風格以符合其應用設計。它透過在播放過程中提供動態音訊反饋來提升使用者參與度。

適用情境

  • 音樂播放器應用
  • 音訊波形視覺化
  • 即時音頻分析
  • 互動式音頻儀表板
  • 教育音頻工具

主要特色

  • 即時音頻視覺化
  • 僅支援 Android
  • 與 pub.dev 的簡單整合
  • 可自定義的視覺樣式
  • 內建的 Android 視覺化 API

適合對象

  • 專注於Android的音頻應用
  • 音樂和聲音可視化項目
  • 尋求即時音訊反饋的開發者
  • 需要即時波形顯示的應用程式
  • 教育或實驗性音訊工具

使用建議

  • 不適用於 iOS 或其他平台
  • 僅限 Android 特定功能
  • 需要 Android SDK 設定
  • 可能對低階設備產生效能影響
  • 除了 GitHub 倉庫外,沒有官方文件

原始 README

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

flutter_visualizers (Depreciated & Not maintaining)Pub

A Flutter plugin to Visualize the audio being played (only android).

Usage

  • Add this to your pubspec.yaml

    dependencies:
    flutter_visualizers: ^0.0.2
    
    
  • Get package from Pub:

    flutter packages get
    
  • Import it in your file

    import 'package:flutter_visualizers/flutter_visualizers.dart';
    

Example

  • Firstly, get a audioSessionID from your native android Mediaplayer.

    player.getAudioSessionId()
    
  • Simply Include this code in body

    new Visualizer(
            builder: (BuildContext context, List<int> wave) {
              return new CustomPaint(
                painter: new LineVisualizer(
                  waveData: wave,
                  height: MediaQuery.of(context).size.height,
                  width : MediaQuery.of(context).size.width,
                  color: Colors.blueAccent,
                ),
                child: new Container(),
              );
            },
            id: playerID,
          )
    

    Here playerId is the AudioSessionId which id needed to initialize the Visualizer. (Required Audio Recording Permission in Android)

    See the Complete Example

Sample

Video

Credits

License

Copyright [2019] [Sahdeep Singh]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Getting Started with Flutter

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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。