Commit 1c070b06 authored by lvtz's avatar lvtz

Merge branch 'sj-dev-v10' of git.server:wangxuelai/wechatapp.shangjiadao.com into onlineclass_lvtz

parents d9c11c3c e3eb471c
......@@ -525,6 +525,7 @@ Page({
})
},
playvoice(e) {
const that = this;
const {
value,
duration
......@@ -535,8 +536,10 @@ Page({
this.innerAudioContext.src = audioorigin(value);
this.curAudioValue = value;
this.innerAudioContext.obeyMuteSwitch = false;
this.innerAudioContext.onTimeUpdate(function(e){
console.log('ewqeqw');
})
this.resetAudiosPlayStatus();
clearInterval(this.data.voiceInterval);
let audioStorage = this.data.audioStorage;
if (!audioStorage[value]) {
audioStorage[value] = {
......@@ -552,14 +555,16 @@ Page({
audioStorage[value].play = true;
}
}
this.innerAudioContext.onCanplay(function (e) {
clearInterval(that.data.voiceInterval);
that.voiceIntervalPlay(value);
})
this.innerAudioContext.seek(audioStorage[value].currentTime)
this.innerAudioContext.play();
this.voiceIntervalPlay(value);
this.setData({
audioStorage,
})
this.innerAudioContext.onCanplay(function (e) {
})
},
pausevoice(e) {
const {
......
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