mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Force stream webContents to be visible
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user