😅 新增快捷键视频倍速

This commit is contained in:
hunlongyu
2020-05-25 22:00:23 +08:00
parent 169b28ab33
commit ba99e65bcb
6 changed files with 22 additions and 22 deletions

View File

@@ -417,8 +417,7 @@ export default {
if (rate > 0.25) {
rate = rate + e
this.xg.playbackRate = rate
// this.xg.video.playbackRate = rate
console.log(rate, 'rate')
this.$m.success(this.$t('rate') + rate)
}
}
},
@@ -442,7 +441,6 @@ export default {
}
})
ipc.on('playbackRateUp', () => {
console.log('opacity up')
if (this.xg) {
if (this.xg.hasStart) {
this.playbackRateEvent(0.25)
@@ -450,7 +448,6 @@ export default {
}
})
ipc.on('playbackRateDown', () => {
console.log('opacity down')
if (this.xg) {
if (this.xg.hasStart) {
this.playbackRateEvent(-0.25)