提交 c2aaea82 编写于 作者: d-u-a's avatar d-u-a

V3: video API 修改参数类型

上级 66cb9275
......@@ -25,9 +25,7 @@ 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)
......@@ -36,11 +34,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) {
requestFullScreen (args = {}) {
operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen', args)
}
exitFullScreen () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册