seek方法无效
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
中文用户请注意:请尽量用**英文**描述你的 issue,这样能够让尽可能多的人帮到你。
If you want to report a bug, please provide the following information:
- The steps to reproduce.
- A minimal demo of the problem via https://jsfiddle.net or http://codepen.io/pen if possible.
- Which versions of APlayer, and which browser / OS are affected by this issueversion?
version 1.10.1
current {url :"",seek:12}
界面初始化调用下面代码发现ap.seek()失效
var current = session_storage.getItem("current");
current = JSON.parse(current);
var index = ap.list.audios.findIndex((item, index, array) => {
return item.url === current.url;
});
if (index !== -1) {
ap.list.switch(index);
ap.seek(current.seek);
}
aplayer事件中也无法调用ap.seek()
error:APlayer.min.js:1 Uncaught (in promise) DOMException: The play() request was interrupted by a new load request. https://goo.gl/LdLk22
这里好像重新设置了seek(0)
有方法避免吗
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.