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

不支持后台播放控制 #21

Closed
liujianshe8899 opened this issue Dec 13, 2020 · 3 comments
Closed

不支持后台播放控制 #21

liujianshe8899 opened this issue Dec 13, 2020 · 3 comments

Comments

@liujianshe8899
Copy link

播放音乐时,当我切换到另一个页面,音乐被打断

@liujianshe8899
Copy link
Author

image

@liujianshe8899
Copy link
Author

一个后台管理系统,多页面来回切换的

@1014156094
Copy link
Owner

1014156094 commented Dec 15, 2020

这个不是组件处理的,我可以告诉你有两种解决方法

第一种:
使用 <iframe/> 加载页面主体内容,播放器在 <iframe/> 外面,参考网易云 https://music.163.com

第二种:
页面切换前存储当前播放时间,页面切换后加载之前存储的播放时间

Repository owner deleted a comment from coderwang123 Apr 21, 2021
Repository owner deleted a comment from coderwang123 Apr 21, 2021
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