Skip to content

Commit 1cea41b

Browse files
committed
Force stream webContents to be visible
1 parent fa3ed4c commit 1cea41b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/streamwall/src/main/viewStateMachine.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ const viewStateMachine = setup({
142142
const wc = view.webContents
143143
wc.audioMuted = true
144144

145+
// Force page visibility
146+
wc.capturePage(undefined, { stayAwake: true })
147+
145148
if (/\.m3u8?$/.test(content.url)) {
146149
loadHTML(wc, 'playHLS', { query: { src: content.url } })
147150
} else {

0 commit comments

Comments
 (0)