Comments (11)
是不是权限问题啊
from starrysky.
这里是看到有提示 Permission denied ,不过这里需要申请什么权限吗
from starrysky.
读写文件权限应该是要的
from starrysky.
感觉这里很奇怪,只是很少的几个出现这种崩溃,我在我8.0的手机上没出现,如果是权限,应该都会崩溃,
android.system.ErrnoException:socket failed: EACCES (Permission denied)
这个应该只与联网权限有关
from starrysky.
联网权限应该正常app都有的,不过这个缓存框架我还没深入去研究过,确实出问题了有点不知道怎么做的感觉,有空得看看它的实现才行。。
from starrysky.
不过我之前用这个缓存框架做视频播放器的缓存时,也遇到过这个问题,后面我直接去掉了这个缓存框架
from starrysky.
那后面你用什么框架,或者你自己实现了?
from starrysky.
暂时没有用缓存了 还没想到用什么来弄
from starrysky.
这就尴尬了
from starrysky.
线上报错信息是HttpProxyCacheServer在初始化的时候会发生崩溃,感觉目前快速解决是在MediaPlayCallback和ExoPlayCallback 中加上try catch处理
try {
mProxyCacheServer = builder.build();
} catch (Exception e) {
e.printStackTrace();
}
在下面用到mProxyCacheServer 的地方加上非空判断,发生崩溃的时候,mProxyCacheServer为null,就不用使用缓存
from starrysky.
可以一试
from starrysky.
Related Issues (20)
- 有歌词吗? HOT 1
- 可以把歌词也加上 HOT 1
- 当前播放器,是不是不支持aac、m4a格式的音频,我这边播放没有声音。如果没有支持是不是需要自己重新编译so库 HOT 3
- 啊我炸了
- 什么时候能适配下Android10以上、API30以上?目前设置了缓存不生效 HOT 4
- 不能确定正在播放哪一首歌
- Bug Play m4a File auto pause not play HOT 3
- 在fragment中如何移除进度监听? HOT 1
- Unable to create service com.lzx.starrysky.service.MusicService. SecurityException: listen HOT 5
- java.lang.ClassNotFoundException HOT 1
- 能否为PlayProgress提供LiveData的监听方式,现有的在compose中使用不方便并且容易造成内存泄漏 HOT 1
- 在api32上无法播放,没有任何反馈 HOT 2
- 配置custom_notification闪退 HOT 1
- 隐私合规问题:获取运行中进程信息 HOT 1
- 通知无法显示
- 设置了7首歌,然后设置随机播放,一直在循环播其中的三首 HOT 4
- 适配Android 12
- 希望添加一个注意事项 HOT 2
- 好像不支持.caf格式音频文件播放 HOT 1
- 打开app,然后在设置中关闭存储权限,直接从后台启动app,app会重启,这时调用播放音乐,不会播放
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starrysky.