mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-30 00:42:48 -05:00
Resolve FIXME
This commit is contained in:
@@ -212,9 +212,8 @@ async function findVideo(kind) {
|
||||
video.play()
|
||||
|
||||
if (!video.videoWidth) {
|
||||
// TODO: figure out why 'playing' event doesn't fire on Twitch when video offscreen
|
||||
const videoReady = new Promise((resolve) =>
|
||||
video.addEventListener('play', resolve, { once: true }),
|
||||
video.addEventListener('playing', resolve, { once: true }),
|
||||
)
|
||||
await videoReady
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user