Skip to content

Commit

Permalink
fix(core): 将超星视频进度步数调整为0.25,倍速颗粒度控制更高。
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 31, 2022
1 parent 1c0f0bb commit 1702aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/cx/LiveSettingPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export const LiveSettingPanel = defineComponent({
value={settings.playbackRate}
min="1"
max="16"
step="1"
step="0.25"
onInput={(e: any) => {
settings.playbackRate = e.target.valueAsNumber;
if (ctx.common.currentMedia) {
ctx.common.currentMedia.playbackRate = e.target.valueAsNumber;
}
}}
></input>
<span style={{ color: settings.playbackRate > 2 ? 'red' : '' }}>{settings.playbackRate}x</span>
<span style={{ color: settings.playbackRate > 2 ? 'red' : '' }}>{settings.playbackRate.toFixed(2)}x</span>
</div>

<label>音量调节</label>
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/cx/StudySettingPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const StudySettingPanel = defineComponent({
value={settings.playbackRate}
min="1"
max="16"
step="1"
step="0.25"
onInput={(e: any) => {
settings.playbackRate = e.target.valueAsNumber;
if (ctx.common.currentMedia) {
Expand All @@ -32,7 +32,7 @@ export const StudySettingPanel = defineComponent({
}}
></input>
</Tooltip>
<span style={{ color: settings.playbackRate > 2 ? 'red' : '' }}>{settings.playbackRate}x</span>
<span style={{ color: settings.playbackRate > 2 ? 'red' : '' }}>{settings.playbackRate.toFixed(2)}x</span>
</div>

<label>音量调节</label>
Expand Down

0 comments on commit 1702aa9

Please sign in to comment.