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