preact-compat
preact-compat copied to clipboard
ReactDom Media Synthetic Events
I just switch to Preact and I'm using Preact-compat. Our video player is running into various issues where it's not actually firing any of the React-Dom synthetic events consistently.
Just wondering, were all of these implemented?
React DOM now supports these media events on audio and video tags: onAbort, onCanPlay, onCanPlayThrough, onDurationChange, onEmptied, onEncrypted, onEnded, onError, onLoadedData, onLoadedMetadata, onLoadStart, onPause, onPlay, onPlaying, onProgress, onRateChange, onSeeked, onSeeking, onStalled, onSuspend, onTimeUpdate, onVolumeChange, onWaiting.
Taken from: https://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html
Other than actually adding the eventListeners ourselves atm, we're assuming this is an issue with preact-compat?
@hassanbazzi Preact just uses browser events, there are no whitelists or proxies to set up in order to support new event types.
Are you able to give any more detail about what you're seeing relating to the missing events? Are you attaching them via standard on* JSX attributes?