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
|
const wc = view.webContents
|
||||||
wc.audioMuted = true
|
wc.audioMuted = true
|
||||||
|
|
||||||
|
// Force page visibility
|
||||||
|
wc.capturePage(undefined, { stayAwake: true })
|
||||||
|
|
||||||
if (/\.m3u8?$/.test(content.url)) {
|
if (/\.m3u8?$/.test(content.url)) {
|
||||||
loadHTML(wc, 'playHLS', { query: { src: content.url } })
|
loadHTML(wc, 'playHLS', { query: { src: content.url } })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user