[Glitch] Fix hardcoded frame rate for frame by frame video navigation in web UI

Port f970e1fab6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Eugen Rochko
2020-11-21 23:19:04 +01:00
committed by Thibaut Girka
parent e71b16ae2b
commit 51d0e1c7b4
5 changed files with 21 additions and 1 deletions

View File

@ -628,6 +628,7 @@ class Status extends ImmutablePureComponent {
<Bundle fetchComponent={Video} loading={this.renderLoadingVideoPlayer} >
{Component => (<Component
preview={attachment.get('preview_url')}
frameRate={attachment.getIn(['meta', 'original', 'frame_rate'])}
blurhash={attachment.get('blurhash')}
src={attachment.get('url')}
alt={attachment.get('description')}