Browse Source

Stopping autoplay, widening videos to show controls.

- Fixes #250
- Fixes #288
- Fixes #291
pull/1/head
Dessalines 2 years ago
parent
commit
3e4f0d0ed5
  1. 2
      src/components/post-listing.tsx

2
src/components/post-listing.tsx

@ -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>
}

Loading…
Cancel
Save