display the video duration in the FileItemMedia component (#27)
This commit is contained in:
parent
6653225b61
commit
a2ee73e23e
7 changed files with 107 additions and 10 deletions
src/component/fileListItem
|
@ -80,6 +80,7 @@ class FileListItem extends React.PureComponent {
|
|||
const uri = normalizeURI(this.props.uri);
|
||||
const obscure = obscureNsfw && nsfw;
|
||||
const isResolving = !fileInfo && isResolvingUri;
|
||||
const duration = claim && claim.value && claim.value.video ? claim.value.video.duration : null;
|
||||
|
||||
let name, channel, height, channelClaimId, fullChannelUri, shortChannelUri, shouldHide, signingChannel;
|
||||
if (claim) {
|
||||
|
@ -110,6 +111,7 @@ class FileListItem extends React.PureComponent {
|
|||
<FileItemMedia
|
||||
style={fileListStyle.thumbnail}
|
||||
blurRadius={obscure ? 15 : 0}
|
||||
duration={duration}
|
||||
resizeMode="cover"
|
||||
title={title || name}
|
||||
thumbnail={thumbnail}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue