mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-09 15:52:40 +08:00
😅 新增快捷键视频倍速
This commit is contained in:
@@ -75,6 +75,7 @@ function createMini () {
|
||||
}
|
||||
|
||||
app.allowRendererProcessReuse = true
|
||||
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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: "
|
||||
}
|
||||
|
||||
@@ -47,5 +47,6 @@
|
||||
"async_success": "同步成功, 查询到更新。",
|
||||
"no_history": "无历史记录",
|
||||
"clearDB": "重置软件",
|
||||
"clearTips": "软件没有问题,请勿重置软件,否则数据丢失概不负责.点击即清空数据库,并关闭软件."
|
||||
"clearTips": "软件没有问题,请勿重置软件,否则数据丢失概不负责.点击即清空数据库,并关闭软件.",
|
||||
"rate": "当前视频播放倍速为:"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user