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

网易云音乐插件优化 #25

Open
jhezjkp opened this issue Sep 14, 2017 · 5 comments
Open

网易云音乐插件优化 #25

jhezjkp opened this issue Sep 14, 2017 · 5 comments

Comments

@jhezjkp
Copy link

jhezjkp commented Sep 14, 2017

改播放器为Omxplayer, 原因是

  • Omxplayer是pi专用有,有做专门优化,参考这里
  • 支持暂停操作,可以参考这个问答

ps:可以做一个本地的播放列表了,音乐也放本地。

@wzpan
Copy link
Collaborator

wzpan commented Sep 14, 2017

可惜,omxplayer 不支持流式播放mp3。

例如,这样播放是没有声音的:

omxplayer http://onmw7y6f4.bkt.clouddn.com/%E6%8E%A5%E5%85%A5%E5%9B%BE%E7%81%B5.mp3

@jhezjkp
Copy link
Author

jhezjkp commented Sep 15, 2017

加参数-o both试试?
https://www.raspberrypi.org/documentation/usage/audio/

@musistudio
Copy link
Contributor

可以尝试mplayer,支持播放暂停,增减音量,上一曲下一曲,列表播放等操作。因近期开学和军训事宜无法进行编程与调试,所以仅提供思路。

@yunxiyinzhe
Copy link
Contributor

找到了这个python-omxplayer-wrapper,加上参数"-o both"确实可以播放流媒体了。可以去修改音乐播放插件了。

@wzpan
Copy link
Collaborator

wzpan commented Sep 16, 2017

@jhezjkp-o both 也没效果。不能用来播放在线音乐,最多只能用来播放本地音乐。
@musistudio mplayer 在控制音乐的方面只提供了控制命令行形式的UI,好像没有专门的控制命令。

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

4 participants