😅 新增快捷键视频倍速

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

@@ -75,6 +75,7 @@ function createMini () {
}
app.allowRendererProcessReuse = true
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {

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)

View File

@@ -47,5 +47,6 @@
"async_success": "Synchronization succeeded, update found.",
"no_history": "No history data.",
"clearDB": "Reset software",
"clearTips": "Click to clear the database and close the software"
"clearTips": "Click to clear the database and close the software",
"rate": "The current video speed is: "
}

View File

@@ -47,5 +47,6 @@
"async_success": "同步成功, 查询到更新。",
"no_history": "无历史记录",
"clearDB": "重置软件",
"clearTips": "软件没有问题,请勿重置软件,否则数据丢失概不负责.点击即清空数据库,并关闭软件."
"clearTips": "软件没有问题,请勿重置软件,否则数据丢失概不负责.点击即清空数据库,并关闭软件.",
"rate": "当前视频播放倍速为:"
}