Commit 458bc903 authored by 罗超's avatar 罗超

1

parent 9ae1e0b2
......@@ -217,6 +217,9 @@ export default {
data.audioTime = t * 1000;
}, 100);
});
if (innerAudioContext.currentTime === innerAudioContext.duration) {
data.isPlay = true;
}
if (data.isPlay) {
innerAudioContext.play();
// refs.listenCountdown.start();
......@@ -227,6 +230,7 @@ export default {
console.log("停了");
data.isPlay = true;
}
innerAudioContext.onError((res) => {
console.log(res.errMsg);
console.log(res.errCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment