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

建议增加一个全局缩略显示的播放总开关(Recommending to add a global playpause master switch) #213

Closed
guihangchen opened this issue Apr 25, 2018 · 7 comments

Comments

@guihangchen
Copy link

guihangchen commented Apr 25, 2018

只要不刷新页面(只是继续点击打开或浏览其他页面)的话音乐都会一直播放着,能不能增加一个全局缩略显示的播放总开关?

As long as the page is not refreshed (just clicking on opening or browsing other pages), the music will be played all the time. Can you add a global playpause total switch?

@SevenOutman
Copy link
Contributor

@guihangchen 加在哪?

@guihangchen guihangchen changed the title 建议增加一个全局缩略显示的播放总开关 建议增加一个全局缩略显示的播放总开关(Recommending to add a global playpause master switch) Apr 25, 2018
@guihangchen
Copy link
Author

@SevenOutman 加在全局顶部或者底部这样,方便浏览网页的人随时暂停播放的音乐。

@SevenOutman
Copy link
Contributor

@guihangchen 比起一个通用的播放器应有的功能,这更像是网站本身希望提供的个性化功能。所以你可以自己实现下,APlayer 有提供控制音乐播放暂停的 API

@guihangchen
Copy link
Author

@SevenOutman 主要是现在默认点击播放音乐后就全局播放,但要暂停的话却只能在加短代码的页面点击暂停....

@SevenOutman
Copy link
Contributor

SevenOutman commented Apr 25, 2018

@guihangchen 我没太明白,你是希望 APlayer 在浏览器上加个按钮?或者给别的网页加上按钮?

@guihangchen
Copy link
Author

@SevenOutman 给一个暂停的总开关动态函数代码就行,直接点击按钮触发那个函数就能暂停APlayer正在播放的音乐这样子。

@mashirozx
Copy link

mashirozx commented May 21, 2018

You may try the fixed-mode, or you should control Aplayer's global play event directly.

@DIYgod DIYgod closed this as completed Jun 13, 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

4 participants