From deeb4e5a719e3d35502436b36a3dffa6bdccb26d Mon Sep 17 00:00:00 2001 From: hospotho Date: Tue, 4 Jul 2023 23:30:32 +0800 Subject: [PATCH] add args to setPlaybackRateDown/Up --- dist/h5player.js | 6 ++++-- docs/home/customConfiguration.md | 6 ++++-- src/h5player/configManager.js | 6 ++++-- src/h5player/custom.configuration.demo.user.js | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/dist/h5player.js b/dist/h5player.js index 5255339d..076bb579 100644 --- a/dist/h5player.js +++ b/dist/h5player.js @@ -1919,12 +1919,14 @@ const configManager = new ConfigManager({ { desc: '减速播放 -0.1', key: 'x', - command: 'setPlaybackRateDown' + command: 'setPlaybackRateDown', + args: [-0.1] }, { desc: '加速播放 +0.1', key: 'c', - command: 'setPlaybackRateUp' + command: 'setPlaybackRateUp', + args: [0.1] }, { desc: '正常速度播放', diff --git a/docs/home/customConfiguration.md b/docs/home/customConfiguration.md index 9f11276f..8ae88927 100644 --- a/docs/home/customConfiguration.md +++ b/docs/home/customConfiguration.md @@ -164,12 +164,14 @@ const customConfiguration = { { desc: '减速播放 -0.1', key: 'x', - command: 'setPlaybackRateDown' + command: 'setPlaybackRateDown', + args: [-0.1] }, { desc: '加速播放 +0.1', key: 'c', - command: 'setPlaybackRateUp' + command: 'setPlaybackRateUp', + args: [0.1] }, { desc: '正常速度播放', diff --git a/src/h5player/configManager.js b/src/h5player/configManager.js index 1257490c..4dd7bcb1 100644 --- a/src/h5player/configManager.js +++ b/src/h5player/configManager.js @@ -150,12 +150,14 @@ const configManager = new ConfigManager({ { desc: '减速播放 -0.1', key: 'x', - command: 'setPlaybackRateDown' + command: 'setPlaybackRateDown', + args: [-0.1] }, { desc: '加速播放 +0.1', key: 'c', - command: 'setPlaybackRateUp' + command: 'setPlaybackRateUp', + args: [0.1] }, { desc: '正常速度播放', diff --git a/src/h5player/custom.configuration.demo.user.js b/src/h5player/custom.configuration.demo.user.js index def7fb3c..dc2738c9 100644 --- a/src/h5player/custom.configuration.demo.user.js +++ b/src/h5player/custom.configuration.demo.user.js @@ -161,12 +161,14 @@ const customConfiguration = { { desc: '减速播放 -0.1', key: 'x', - command: 'setPlaybackRateDown' + command: 'setPlaybackRateDown', + args: [-0.1] }, { desc: '加速播放 +0.1', key: 'c', - command: 'setPlaybackRateUp' + command: 'setPlaybackRateUp', + args: [0.1] }, { desc: '正常速度播放',