@mathias Apparently I needed Array.from(video.textTracks).filter(track=>track.mode==="showing"||track.mode==="hidden"). All good now :)
Something like `enabledTracks` could be useful, though. Glad you filed https://github.com/whatwg/html/issues/1290 … :)
-
-
Np. I'm sure others might run into this question and not immediately realize that they need to filter that list by mode
-
Apparently it wasn't enough :S Unless I make custom query selectors from track.label, I won't be able to rewrite the src attribute
- 1 more reply
New conversation -
-
-
I stand corrected actually. I could do a couple queries on the track elements themselves + that filter logic and it's adequate then
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.