|
@@ -333,9 +333,7 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
videoPlay() {
|
|
videoPlay() {
|
|
- console.log('触发');
|
|
|
|
if (this.data.readingReset) {
|
|
if (this.data.readingReset) {
|
|
- console.log('触发2');
|
|
|
|
this.resultAudioContext = wx.createInnerAudioContext();
|
|
this.resultAudioContext = wx.createInnerAudioContext();
|
|
this.resultAudioContext.src = this.data.readDetail.tempFilePath; // 这里可以是录音的临时路径
|
|
this.resultAudioContext.src = this.data.readDetail.tempFilePath; // 这里可以是录音的临时路径
|
|
this.resultAudioContext.play();
|
|
this.resultAudioContext.play();
|
|
@@ -352,8 +350,7 @@ Page({
|
|
},
|
|
},
|
|
// 控制视频或音频的播放状态
|
|
// 控制视频或音频的播放状态
|
|
playMediaState() {
|
|
playMediaState() {
|
|
- // if(videoInfo.userReadExtend){
|
|
|
|
- if (false) {
|
|
|
|
|
|
+ if (this.data.videoInfo.userReadExtend) {
|
|
this.videoContext.play()
|
|
this.videoContext.play()
|
|
} else {
|
|
} else {
|
|
this.innerAudioContext.play();
|
|
this.innerAudioContext.play();
|
|
@@ -361,8 +358,7 @@ Page({
|
|
},
|
|
},
|
|
// 控制视频或音频的暂停状态
|
|
// 控制视频或音频的暂停状态
|
|
stopMediaState() {
|
|
stopMediaState() {
|
|
- // if(videoInfo.userReadExtend){
|
|
|
|
- if (false) {
|
|
|
|
|
|
+ if (this.data.videoInfo.userReadExtend) {
|
|
this.videoContext.stop()
|
|
this.videoContext.stop()
|
|
this.videoContext.seek(0)
|
|
this.videoContext.seek(0)
|
|
} else {
|
|
} else {
|
|
@@ -393,7 +389,4 @@ Page({
|
|
clearTimeout(this.setTimeoutObj)
|
|
clearTimeout(this.setTimeoutObj)
|
|
clearInterval(this.stl)
|
|
clearInterval(this.stl)
|
|
},
|
|
},
|
|
- onShareAppMessage() {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
})
|
|
})
|