完成第一部分

This commit is contained in:
2025-05-26 09:46:38 +08:00
parent e05425cb40
commit 74f43449b4
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,41 @@
Page({
/**
* 页面的初始数据
*/
data: {
},
videoPlay(){
this.videoContext.play()
},
videoPause() {
this.videoContext.pause()
},
videoPlayBackRate() {
this.videoContext.playbackRate(1.5)
},
videorequestFullScreen() {
this.videoContext.requestFullScreen()
},
videoSeek0() {
this.videoContext.seek(0)
},
bindInputBlur: function (e) {
this.inputValue = e.detail.value
},
bindSendDanmu: function () {
this.videoContext.sendDanmu({
text: this.inputValue,
color:"#FFFFF"
})
},
onReady: function () {
this.videoContext = wx.createVideoContext('Video')
}
})