EspoirX / StarrySky

🔥A Powerful and Streamline MusicLibrary(一个丰富的音乐播放封装库,支持多种音频格式,完美解决你的问题。)
https://github.com/EspoirX/StarrySky
MIT License
1.4k stars 211 forks source link

什么时候能适配下Android10以上、API30以上?目前设置了缓存不生效 #199

Closed weiqt closed 1 year ago

weiqt commented 2 years ago

什么时候能适配下Android10以上、API30以上?目前设置了缓存不生效

EspoirX commented 2 years ago

10以下有问题吗

weiqt commented 2 years ago

没有10以下的手机,我现在手机是Android10,API设置了29,并不能创建000StarrySkyCache这个文件夹 StarrySky.init(this) .setOpenCache(true) .setAutoManagerFocus(false) //使用多实例的时候要关掉,不然会相互抢焦点 .setCacheDestFileDir("000StarrySkyCache/".toSdcardPath()) // .setCacheDestFileDir(PathUtils.getExternalAppCachePath()) .setCacheMaxBytes(1024 1024 1024) //设置缓存上限,默认 512 1024 1024 //.setCache(AndroidVideoCache(this)) // .addInterceptor(PermissionInterceptor(this)) .setNotificationSwitch(true) // .setNotificationType(INotification.CUSTOM_NOTIFICATION) .apply()

weiqt commented 2 years ago

建议您把sdk version设置到29、30试一下

EspoirX commented 1 year ago

缓存路径用沙盒就好