From 66cb9275bb5ae64f78a65f041c8110d1ab43ba30 Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 30 Oct 2019 17:05:18 +0800 Subject: [PATCH] =?UTF-8?q?v3=20video=20API=20=E5=A2=9E=E5=8A=A0=E5=80=8D?= =?UTF-8?q?=E9=80=9F=E5=80=BC=EF=BC=8C=E5=85=A8=E5=B1=8F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/service/api/context/create-video-context.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/service/api/context/create-video-context.js b/src/core/service/api/context/create-video-context.js index 84d60bf86..2a72bef4a 100644 --- a/src/core/service/api/context/create-video-context.js +++ b/src/core/service/api/context/create-video-context.js @@ -3,7 +3,7 @@ import { getCurrentPageVm } from '../../platform' -const RATES = [0.5, 0.8, 1.0, 1.25, 1.5] +const RATES = [0.5, 0.8, 1.0, 1.25, 1.5, 2.0] function operateVideoPlayer (videoId, pageVm, type, data) { invokeMethod('operateVideoPlayer', videoId, pageVm, type, data) @@ -40,8 +40,8 @@ class VideoContext { rate }) } - requestFullScreen () { - operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen') + requestFullScreen (args) { + operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen', args) } exitFullScreen () { operateVideoPlayer(this.id, this.pageVm, 'exitFullScreen') -- GitLab