mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-08 06:43:03 +08:00
😅 新增快捷键视频倍速
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user