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
Comments
@guihangchen 加在哪? |
@SevenOutman 加在全局顶部或者底部这样,方便浏览网页的人随时暂停播放的音乐。 |
@guihangchen 比起一个通用的播放器应有的功能,这更像是网站本身希望提供的个性化功能。所以你可以自己实现下,APlayer 有提供控制音乐播放暂停的 API。 |
@SevenOutman 主要是现在默认点击播放音乐后就全局播放,但要暂停的话却只能在加短代码的页面点击暂停.... |
@guihangchen 我没太明白,你是希望 APlayer 在浏览器上加个按钮?或者给别的网页加上按钮? |
@SevenOutman 给一个暂停的总开关动态函数代码就行,直接点击按钮触发那个函数就能暂停APlayer正在播放的音乐这样子。 |
You may try the fixed-mode, or you should control Aplayer's global play event directly. |
只要不刷新页面(只是继续点击打开或浏览其他页面)的话音乐都会一直播放着,能不能增加一个全局缩略显示的播放总开关?
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?
The text was updated successfully, but these errors were encountered: