|
@@ -134,8 +134,7 @@ Page({
|
|
|
this.setData({
|
|
|
videoInfo
|
|
|
})
|
|
|
- // if(videoInfo.userReadExtend){
|
|
|
- if (false) {
|
|
|
+ if (!this.data.videoInfo.userReadExtend) {
|
|
|
this.videoContext = wx.createVideoContext('myVideo')
|
|
|
} else {
|
|
|
this.innerAudioContext = wx.createInnerAudioContext();
|
|
@@ -350,7 +349,7 @@ Page({
|
|
|
},
|
|
|
// 控制视频或音频的播放状态
|
|
|
playMediaState() {
|
|
|
- if (this.data.videoInfo.userReadExtend) {
|
|
|
+ if (!this.data.videoInfo.userReadExtend) {
|
|
|
this.videoContext.play()
|
|
|
} else {
|
|
|
this.innerAudioContext.play();
|
|
@@ -358,7 +357,7 @@ Page({
|
|
|
},
|
|
|
// 控制视频或音频的暂停状态
|
|
|
stopMediaState() {
|
|
|
- if (this.data.videoInfo.userReadExtend) {
|
|
|
+ if (!this.data.videoInfo.userReadExtend) {
|
|
|
this.videoContext.stop()
|
|
|
this.videoContext.seek(0)
|
|
|
} else {
|