if (!that.data.current) {//判斷是否有播放的視頻
this.videoContext.stop()
this.setData({//沒有視頻播放時
current: e.detail.current
}, function () {
this.videoContext = wx.createVideoContext('myVideo' + this.data.current)
this.videoContext.play()
})
} else {
this.videoContext.pause()
this.setData({
current: e.detail.current
}, function () {
this.videoContext = wx.createVideoContext('myVideo' + this.data.current)
this.videoContext.play()
})
}