Commit b8aede03 authored by mgabdev's avatar mgabdev

TESTING gifs

parent 7ec113a0
...@@ -97,6 +97,10 @@ class Item extends React.PureComponent { ...@@ -97,6 +97,10 @@ class Item extends React.PureComponent {
setCanvasRef = c => { setCanvasRef = c => {
this.canvas = c; this.canvas = c;
} }
setVideoRef = v => {
this.videoRef = v;
}
handleImageLoad = () => { handleImageLoad = () => {
this.setState({ loaded: true }); this.setState({ loaded: true });
...@@ -182,16 +186,11 @@ class Item extends React.PureComponent { ...@@ -182,16 +186,11 @@ class Item extends React.PureComponent {
thumbnail = ( thumbnail = (
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}> <div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>
<video <video
ref={this.setVideoRef}
className='media-gallery__item-gifv-thumbnail' className='media-gallery__item-gifv-thumbnail'
aria-label={attachment.get('description')}
title={attachment.get('description')}
role='application'
src={gifsrc} src={gifsrc}
type='video/mp4' type='video/mp4'
autoPlay={autoPlay}
preload='auto' preload='auto'
loop
muted
playsInline playsInline
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment