Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause to enter the background, but when it comes back to the foreground, it starts playing automatically #39

Closed
hrongyong opened this issue Jun 18, 2020 · 3 comments

Comments

@hrongyong
Copy link

Pause to enter the background, but when it comes back to the foreground, it starts playing automatically

There are solutions:
https://www.jianshu.com/p/0eb4f84ef55b

But i can't understand it, it's up to you

@jeromexiong
Copy link
Owner

audio_ manager didn't listen to the foreground and background notifications

@hrongyong
Copy link
Author

之前我发现切到后台后,播放停止(切之前是正在播放的)。
所以我打开了这个
image
就可以正常的在后台播放音频了。
但是我发现,当我app在前台的时候暂停,然后切到后台,过了五分钟后再将app切回前台,音频会自动播放,我觉得这不是正常情况吧。。。
我查简书找到了上面那个。。。
(发中文没影响b格吧)

@jeromexiong
Copy link
Owner

@hrongyong 权限问题你可以查看info.plistAndroidManifest.xml,至于五分钟暂停后自动播放问题没遇到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants