提交 75234f8f 编写于 作者: Q qiang

Merge branch 'v3' of github.com:dcloudio/uni-app into v3

......@@ -25,7 +25,9 @@ class VideoContext {
operateVideoPlayer(this.id, this.pageVm, 'stop')
}
seek (position) {
operateVideoPlayer(this.id, this.pageVm, 'seek', position)
operateVideoPlayer(this.id, this.pageVm, 'seek', {
position
})
}
sendDanmu (args) {
operateVideoPlayer(this.id, this.pageVm, 'sendDanmu', args)
......@@ -34,7 +36,9 @@ class VideoContext {
if (!~RATES.indexOf(rate)) {
rate = 1.0
}
operateVideoPlayer(this.id, this.pageVm, 'playbackRate', rate)
operateVideoPlayer(this.id, this.pageVm, 'playbackRate', {
rate
})
}
requestFullScreen (args = {}) {
operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen', args)
......
......@@ -12,7 +12,7 @@ const METHODS = {
return invokeVmMethodWithoutArgs(ctx, 'pause')
},
seek (ctx, args) {
return invokeVmMethod(ctx, 'seek', args)
return invokeVmMethod(ctx, 'seek', args.position)
},
stop (ctx) {
return invokeVmMethodWithoutArgs(ctx, 'stop')
......@@ -21,7 +21,7 @@ const METHODS = {
return invokeVmMethod(ctx, 'sendDanmu', args)
},
playbackRate (ctx, args) {
return invokeVmMethod(ctx, 'playbackRate', args)
return invokeVmMethod(ctx, 'playbackRate', args.rate)
},
requestFullScreen (ctx, args) {
return invokeVmMethod(ctx, 'requestFullScreen', args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册