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

自己定义的状态栏,点击暂停后会马上重新播放,点击结束只清除了状态栏而播放器还在继续播放 #7

Open
pyc527712512 opened this issue Aug 14, 2019 · 3 comments

Comments

@pyc527712512
Copy link

if (action.equals(MusicConstants.MUSIC_INTENT_ACTION_CLICK_PAUSE)) {
MusicPlayerManager.getInstance().playOrPause();
ToastManager.mToastshow(context, "点击了暂停");
// MusicPlayerManager.getInstance().getPlayerState();
//前台进程-关闭前台进程
} else if (action.equals(MusicConstants.MUSIC_INTENT_ACTION_CLICK_CLOSE)) {
MusicPlayerManager.getInstance().stopServiceForeground();
ToastManager.mToastshow(context, "点击了关闭");
//收藏
}

@hty527
Copy link
Owner

hty527 commented Aug 15, 2019

你好,
1:“点击暂停后会马上重新播放” 这个我这边复现和排查一下。
2:“点击结束只清除了状态栏而播放器还在继续播放” 设计功能和交互时是只给用户清除通知栏,不影响后台播放逻辑。

@pyc527712512
Copy link
Author

好的

@hty527
Copy link
Owner

hty527 commented Aug 15, 2019

请问下示例Demo中会出现点击暂停立马又开始播放的现象吗?

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