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)
有方法避免吗
中文用户请注意:请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。
If you want to report a bug, please provide the following information:
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) 有方法避免吗