TESTING gifs

This commit is contained in:
mgabdev 2020-01-17 15:07:23 -05:00
parent 7ec113a038
commit b8aede03a1

View File

@ -97,6 +97,10 @@ class Item extends React.PureComponent {
setCanvasRef = c => {
this.canvas = c;
}
setVideoRef = v => {
this.videoRef = v;
}
handleImageLoad = () => {
this.setState({ loaded: true });
@ -182,16 +186,11 @@ class Item extends React.PureComponent {
thumbnail = (
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>
<video
ref={this.setVideoRef}
className='media-gallery__item-gifv-thumbnail'
aria-label={attachment.get('description')}
title={attachment.get('description')}
role='application'
src={gifsrc}
type='video/mp4'
autoPlay={autoPlay}
preload='auto'
loop
muted
playsInline
/>