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

锁屏页下歌曲名显示问题 #19

Closed
shenbengit opened this issue May 10, 2018 · 16 comments
Closed

锁屏页下歌曲名显示问题 #19

shenbengit opened this issue May 10, 2018 · 16 comments

Comments

@shenbengit
Copy link

s80510-205458 正常情况下不是该显示正在播放的歌曲名吗?为啥我这显示的是app的名称?

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

你有设置 setSongName() 吗

@shenbengit
Copy link
Author

1526004402 1
已经设置了,这一步也是可以进行判断的,
1526004348 1,即使没有设置歌曲名,那也不应该显示app的名称啊?

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

我没有设置app名称,我先自己测试检查一下吧

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

刚用魅族手机做了测试,结果是一定要设置封面才能正常显示,至于显示app的名称这个,是系统行为,比如魅族就显示 MEIZU Music 字样,所以你可以设置个封面看看结果怎么样,因为缺手机,其他手机还没测试。

@shenbengit
Copy link
Author

ok,一会我测试一下。

@shenbengit
Copy link
Author

image
现在设置了,还是没有效果。按钮点击事件均可用。

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

你是什么手机,我找一台测试一下

@shenbengit
Copy link
Author

魅族,O(∩_∩)O,要不你告诉我在那里实现锁屏功能,还没找到,尴尬。

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

QueueHelper#fetchInfoWithMediaMetadata方法,数据赋值在这里面,你也可以运行下demo看看

@shenbengit
Copy link
Author

问题已经解决了,就是要设置封面才能正确显示音乐名,刚刚没效果是因为我设置setSongCover()没有设置成功。谢谢。

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

路径错了吗

@shenbengit
Copy link
Author

嗯,
image这里如果音乐名过长,可以改成跑马灯形式吗?

@EspoirX
Copy link
Owner

EspoirX commented May 11, 2018

这个是系统的播放器,得看具体系统它自己的操作了,可能跑马灯,可能省略号也不一定,,你可以写死一个看看效果

@shenbengit
Copy link
Author

好的,我试试。

@EspoirX EspoirX closed this as completed May 11, 2018
@shenbengit
Copy link
Author

image 有什么方法可以监听点击了上一首、下一首按钮点击事件吗?

@EspoirX
Copy link
Owner

EspoirX commented May 12, 2018

我暂时还没写监听这两个按钮的方法

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