TESTING gifs
This commit is contained in:
parent
7ec113a038
commit
b8aede03a1
@ -98,6 +98,10 @@ class Item extends React.PureComponent {
|
||||
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
|
||||
/>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user