Stopping autoplay, widening videos to show controls.

- Fixes #250
- Fixes #288
- Fixes #291
This commit is contained in:
Dessalines 2019-10-12 15:15:18 -07:00
parent f356a35884
commit c38f8c9c00

View File

@ -89,7 +89,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<span title={i18n.t('expand_here')} class="pointer" onClick={linkEvent(this, this.handleImageExpandClick)}><img class="mx-2 mt-1 float-left img-fluid thumbnail rounded" src={post.url} /></span>
}
{post.url && isVideo(post.url) &&
<video controls autoPlay muted loop class="mx-2 mt-1 float-left img-fluid thumbnail rounded">
<video playsinline muted loop controls class="mx-2 mt-1 float-left" height="100" width="150">
<source src={post.url} type="video/mp4" />
</video>
}