返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
Flutter

A Simple Solution for Playing Music in Flutter - AudioPlayers - and Pitfalls

Currently, for playing music in Flutter it seems AudioPlayers is the only solution I could find. I followed its documentation, and it can indeed play music. Project homepage: https://pub.flutter-io.cn/packages/audioplayers AudioCache introduction: https://github.com/luanpotter/audioplayers/blob/master/doc/audio_cache.md An

曦远 (DealiAxy)约 2 分钟

Currently, for playing music in Flutter it seems AudioPlayers is the only solution I could find. I followed its documentation, and it can indeed play music.

Project homepage: https://pub.flutter-io.cn/packages/audioplayers

AudioCache introduction: https://github.com/luanpotter/audioplayers/blob/master/doc/audio_cache.md

Fix for being unable to access non-HTTPS addresses after Android 9: https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted

_EOF_

A Simple Solution for Playing Music in Flutter - AudioPlayers - and Pitfalls

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

从细节入手改善用户体验,Flutter跨平台App开发中设置Android和iOS的启动页

前言 flutter开发App方便快捷,就是冷启动的时候要加载dart引擎有短暂的白屏,严重影响用户体验,这个时候我们就需要设置一个启动图片,像国内大部分App那样(例如微信那个地球),启动App的时候显示这个图片,加载完再进入App,不至于影响用户体验。 Android启动页 首先要准备好启动图,本文命名为splash.png,按照不同的分辨率添加到对应的mipmap-hdpi / mipmap

2021-12-18 · Flutter · 约 1 分钟

有模有样解决Flutter里Webview无法访问HTTP页面的问题

探索过程 Android9(好像是吧)开始谷歌就默认不让开发者访问不安全HTTP内容了,如果非要用HTTP,那必须在networkSecurityConfig里配置cleartextTrafficPermitted才行。谷歌这个设计的出发点本是好的,HTTPS固然更安全咱都懂,但有时候这个后端接口你选择不了要HTTP还是HTTPS,比如要使用没有提供HTTPS的第三方服务,或者是本文的这种情况:在

2021-12-18 · Flutter · 约 1 分钟

初见Flutter!框架简单介绍以及构建可发布的签名Apk包

哈喽!好久不见,算起来我已经一个多月没更新博客了,近期刚刚完成了一个项目,正好抽出时间整理一下学到的东西并且写写博客。 关于flutter 开始使用flutter还是春节后的事情,其实之前很早就想学一下flutter了,毕竟谷歌出的技术总是不会太差的,无奈一直没有时间和做app的需求,这次接触了flutter之后仿佛发现了新大陆,原来开发app还能这么方便,真的颠覆了我原来的认知啊,热更新也太好用

2021-12-18 · Flutter · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…