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

1

parent 9ae1e0b2
...@@ -217,6 +217,9 @@ export default { ...@@ -217,6 +217,9 @@ export default {
data.audioTime = t * 1000; data.audioTime = t * 1000;
}, 100); }, 100);
}); });
if (innerAudioContext.currentTime === innerAudioContext.duration) {
data.isPlay = true;
}
if (data.isPlay) { if (data.isPlay) {
innerAudioContext.play(); innerAudioContext.play();
// refs.listenCountdown.start(); // refs.listenCountdown.start();
...@@ -227,6 +230,7 @@ export default { ...@@ -227,6 +230,7 @@ export default {
console.log("停了"); console.log("停了");
data.isPlay = true; data.isPlay = true;
} }
innerAudioContext.onError((res) => { innerAudioContext.onError((res) => {
console.log(res.errMsg); console.log(res.errMsg);
console.log(res.errCode); 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