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

在播放状态划掉多任务视图,notification视图保留,但是失去响应。 #9

Open
KnIfER opened this issue Jan 27, 2018 · 3 comments

Comments

@KnIfER
Copy link

KnIfER commented Jan 27, 2018

在这种情况下,点击消息里的按钮(下一首,暂停,关闭)均无反应。
似乎,PlayNotifyManager中的receiver失效了。
而网易云音乐在此情况下仍然可以操作notification视图。

@KnIfER KnIfER changed the title 播放状态划掉多任务视图,notification视图保留,但是失去响应。 在播放状态划掉多任务视图,notification视图保留,但是失去响应。 Jan 27, 2018
@KnIfER
Copy link
Author

KnIfER commented Jan 28, 2018

同时音乐播放也会停止。

@KnIfER
Copy link
Author

KnIfER commented Jan 29, 2018

嘿嘿正在魔改中。
思路是一个activity startService+bindService,
然后关键是 PlayNotifyManager 等由 playService持有 ,依然是处理进程间通信。
还有一个关键就是show的时候 调用activity.startForeground(PLAY_NOTIFY_ID, notification);
其中activity其实是service。。

@KnIfER
Copy link
Author

KnIfER commented Jan 30, 2018

还有以一个关键应该是onpause的时候unbindService

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

1 participant