简体   繁体   English

如何实现音频流应用和安全存储

[英]How to implement audio streaming app and secure storage in flutter

I am about to build an app like deezer using flutter https://play.google.com/store/apps/details?id=deezer.android.app now for I have 2 question. 我即将使用flutter https://play.google.com/store/apps/details?id=deezer.android.app构建一个类似deezer的应用,因为我有2个问题。

  1. Is there any library for online audio streaming which may give the possibility to download the app 是否有任何用于在线音频流的库可以提供下载应用程序的可能性

  2. How can I store my audio files in a private / hidden folder such as folder created using vault app in case of download https://play.google.com/store/apps/details?id=com.netqin.ps 如何将我的音频文件存储在私人/隐藏文件夹中,例如使用vault应用程序创建的文件夹,以便下载https://play.google.com/store/apps/details?id=com.netqin.ps

Thanks for your help 谢谢你的帮助

To stream audio you can use this library: 要流式传输音频,您可以使用此库:

AudioPlayers AudioPlayers

To keep your files safe you can use the Sandbox folder in iOS and getExternalFilesDir in Android. 为了确保您的文件安全,您可以使用iOS中的Sandbox文件夹和Android中的getExternalFilesDir

You can find an example of how to implement the saving of the file over here: 您可以在此处找到如何实现文件保存的示例:

Saving data to Local Storage in Flutter 在Flutter中将数据保存到本地存储

I remind you that SOF is to show what you've done so far, some of your progress, examples, etc so we can help you with that and not how to build an entire app. 我提醒你,SOF是为了展示你到目前为止所做的,你的一些进展,例子等等,所以我们可以帮助你,而不是如何构建一个完整的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM