You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, video nodes still dispatches many events (canplay, etc), and timeweb only prevents some events (play and pause). Since video nodes that timeweb processes are always paused, and then seeked through to "play" them, this can create some unintended consequences. See tungs/timecut#55 for an example, where a canplay event is dispatched every single frame.
List of media events can be seen here. Of the list (abort, canplay, canplaythrough, durationchange, emptied, ended, error, loadeddata, loadedmetadata, loadstart, pause, play, playing, progress, ratechange, seeked, seeking, stalled, suspend, timeupdate, volumechange, waiting), only some of them are relevant. For each relevant one, it's likely that custom behavior needs to be defined and custom events need to be dispatched to restore intended behavior.
The text was updated successfully, but these errors were encountered:
tungs
changed the title
Customize additional event dispatching for video
[FEATURE REQUEST] Customize additional event dispatching for video
Jun 17, 2021
Currently, video nodes still dispatches many events (
canplay
, etc), and timeweb only prevents some events (play
andpause
). Since video nodes that timeweb processes are always paused, and then seeked through to "play" them, this can create some unintended consequences. See tungs/timecut#55 for an example, where acanplay
event is dispatched every single frame.Video behavior may be further customizable by adding event listeners in
addMediaNode
and callingevent.stopImmediatePropagation
(orevent.stopPropagation
). That behavior is currently customized forplay
andpause
events.List of media events can be seen here. Of the list (
abort
,canplay
,canplaythrough
,durationchange
,emptied
,ended
,error
,loadeddata
,loadedmetadata
,loadstart
,pause
,play
,playing
,progress
,ratechange
,seeked
,seeking
,stalled
,suspend
,timeupdate
,volumechange
,waiting
), only some of them are relevant. For each relevant one, it's likely that custom behavior needs to be defined and custom events need to be dispatched to restore intended behavior.The text was updated successfully, but these errors were encountered: