Skip to content

Commit 3077bea

Browse files
authored
Fix video pausing when saving a screenshot to the default folder (#6721)
1 parent 38254ee commit 3077bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ export default defineComponent({
15931593
const filenameWithExtension = `${filename}.${format}`
15941594

15951595
const wasPlaying = !video_.paused
1596-
if (wasPlaying) {
1596+
if ((!process.env.IS_ELECTRON || screenshotAskPath.value) && wasPlaying) {
15971597
video_.pause()
15981598
}
15991599

@@ -1630,7 +1630,7 @@ export default defineComponent({
16301630
} finally {
16311631
canvas.remove()
16321632

1633-
if (wasPlaying) {
1633+
if ((!process.env.IS_ELECTRON || screenshotAskPath.value) && wasPlaying) {
16341634
video_.play()
16351635
}
16361636
}

0 commit comments

Comments
 (0)