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

GitHub 儲存庫evrone/flutter_audio

flutter_audio

一個用於播放和錄製聲音的 Flutter 音頻外掛程式

flutter_audio 專案封面
星標
111
分支
34
最近推送(UTC)
2021年3月25日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

medcorder_audio

Flutter record/play audio plugin.

pub package Language

Sponsored by Evrone
Developed for Evrone.com
Funded by Medcorder Medcorder.com

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

With the medcorder_audio plugin you can integrate record/play audio support into your flutter app for iOS or Android.

Plugin functions

setAudioSettings

Future setAudioSettings()
iOS only. open PlayAndRecord audio session
returns: 'OK', 'FAIL'

backAudioSettings

Future backAudioSettings()
iOS only. close PlayAndRecord audio session
returns: 'OK', 'FAIL'

startRecord

Future startRecord(String fileId)
start record audio file to app documents path
returns: 'OK', 'FAIL'

stopRecord

Future stopRecord()
stop audio recording process
returns: 'OK', 'FAIL'

checkMicrophonePermissions

Future checkMicrophonePermissions()
check if you have recording audio permissions
returns: 'OK', 'NO'

startPlay

Future startPlay(dynamic params) async
start audio playing for file with position
returns: 'OK', 'FAIL'
params: Map<String, String>

Key Type Description
file String String file Id
position double play start position in seconds
stopPlay

Future stopPlay()
stop audio playing
returns: 'OK', 'FAIL'\

Plugin events

for receiving plugin events you need assign callback function
void _onEvent(dynamic event) {...}

recording events
Key Type Description
'code' String 'recording',
'url' String recording file url
'peakPowerForChannel' double peak power for channel
'currentTime' double recording time in seconds
playing events
Key Type Description
'code' String 'playing', 'audioPlayerDidFinishPlaying'
'url' String playing file url
'currentTime' double playing time in seconds
'duration' double playing file duration
Evrone GitHub avatar
GitHub 作者

Evrone ↗

We are here to design, develop, and grow your web and mobile products 😉

United States of America官方網站 ↗
語言JavaDartRubyObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項

  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗