diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 75205226..5d220ed1 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -28,6 +28,11 @@ export default Vue.extend({ } else if (this.player.isInPictureInPicture()) { this.player.play() } + + if (this.usingElectron && this.powerSaveBlocker !== null) { + const { powerSaveBlocker } = require('electron') + powerSaveBlocker.stop(this.powerSaveBlocker) + } }, props: { format: { @@ -172,6 +177,11 @@ export default Vue.extend({ clearTimeout(this.mouseTimeout) } } + + if (this.usingElectron && this.powerSaveBlocker !== null) { + const { powerSaveBlocker } = require('electron') + powerSaveBlocker.stop(this.powerSaveBlocker) + } }, methods: { initializePlayer: async function () {