Is HTMLMediaElement.oncanplaythrough
event expected to be dispatched multiple times at a single .oncanplaythrough
or "canplaythrough"
event handler attached to an HTMLMediaElement
?
If yes,
What are the different state types dispatched at the expected multiple
canplaythrough
event?How to properly create a condition within the
oncanplay
event handler to perform a task only when the last expected state type of thecanplaythrough
event evaluates totrue
?