Releases: benwiley4000/react-gif-player
v0.4.2
v0.4.1
v0.4.0
Added onTogglePlay
prop which is called whenever the player changes state.
v0.3.1
v0.3.0
features
- Implemented
autoplay
prop which should be true if you want the GIF to start playing on mount. - Implemented
pauseRef
prop - a function which receives a callback to remotely pause the GIF.
other
- Using
getDerivedStateFromProps
instead ofcomponentWillReceiveProps
for React 16.3 / async rendering compatibility. Using polyfill for backward compatibility.
v0.2.3
- You can now use any version of React 15 or 16
- Switched to
prop-types
package (away fromReact.PropTypes
) (thanks @nicubarbaros!)
v0.2.2
Code is identical to v0.2.1, though the "main" entry point specified in package.json has been corrected.
v0.2.1
A small patch extends auto-extraction of the first GIF frame as a still preview (previously enabled in v0.2.0) to images fetched from different domains. Previously a browser console error would indicate the operation is considered insecure.
v0.2.0
The significant feature update since 0.1.4 is that if no still
prop is provided to the component, a hidden canvas element will be used to extract a data url pointing to the first frame from the gif, and that data url will be swapped in as the still
option.
Note this swap will not occur until the GIF image has fully loaded (as of today, a partially-loaded GIF cannot be drawn to an HTML canvas unfortunately).
v0.1.4
Webkit mobile tap highlight (-webkit-tap-highlight-color) hidden (made transparent).