Comments (6)
BUG fixed.
Please update your PlayerService
configuration in AndroidManifest.xml
:
<service
...
android:foregroundServiceType="mediaPlayback">
...
</service>
from snow.
Like this ?
<receiver android:name="androidx.media.session.MediaButtonReceiver"
android:foregroundServiceType="mediaPlayback"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
from snow.
from snow.
Apps that target Android 12 (API level 31) or higher can't start foreground services while running in the background. There is no good solution unless the service is always running in the foreground(even if the player has paused).
from snow.
BUG fixed, service is always running in the foreground, even if the player has paused.
from snow.
thank you now its fixed
from snow.
Related Issues (20)
- 为什么有些网络歌曲没播放完就直接播放下一首了
- How can I add images of songs in local music and album ? HOT 5
- moveMusicItem 移动歌曲位置有问题啊。 HOT 3
- “"音量均衡”功能和修改”随机播放“算法 HOT 10
- AppWidget 怎么接收不到广播啊? HOT 12
- MIUI14上通知栏专辑封面显示问题 HOT 6
- setNextPlay()添加下一首播放有问题。 HOT 3
- qq音乐的播放链接不能播放,用浏览器直接打开是没问题的 HOT 1
- Android 13 黑屏音乐过一会就会停止播放 HOT 15
- 寻求一下帮助。 HOT 9
- 没有设置播放音量大小的方法吗 HOT 6
- 1.2.11 多次点击播放暂停会出现无声音播放 HOT 3
- 可以出蓝牙车载歌词功能吗 HOT 3
- Need Update Library HOT 4
- Media Notification Not closed HOT 2
- Android 14 Error: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts HOT 3
- Namespace not specified. Specify a namespace in the module's build file
- *Important proguard Issue HOT 3
- 设置音量暂停恢复播放后音量设定值会失效啊 HOT 3
- 引入之后,MMKV版本冲突,如何解决 HOT 3
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 snow.