mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-25 06:32:49 -05:00
Add support for playing HLS m3u8/m3u URLs
This commit is contained in:
@@ -189,7 +189,12 @@ const viewStateMachine = Machine(
|
||||
ensureValidURL(content.url)
|
||||
const wc = view.webContents
|
||||
wc.audioMuted = true
|
||||
wc.loadURL(content.url)
|
||||
|
||||
if (/\.m3u8?$/.test(content.url)) {
|
||||
wc.loadFile('playHLS.html', { query: { src: content.url } })
|
||||
} else {
|
||||
wc.loadURL(content.url)
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user