Force stream webContents to be visible

This commit is contained in:
Max Goodhart
2025-06-14 18:41:41 +00:00
parent fa3ed4c4e8
commit 1cea41bded

View File

@@ -142,6 +142,9 @@ const viewStateMachine = setup({
const wc = view.webContents
wc.audioMuted = true
// Force page visibility
wc.capturePage(undefined, { stayAwake: true })
if (/\.m3u8?$/.test(content.url)) {
loadHTML(wc, 'playHLS', { query: { src: content.url } })
} else {