Browse Source

Fix video playback in glitch-soc detailed statuses

closed-social-glitch-2
Thibaut Girka 6 years ago
parent
commit
a896f601fa
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/flavours/glitch/features/status/components/detailed_status.js

+ 3
- 1
app/javascript/flavours/glitch/features/status/components/detailed_status.js View File

@ -53,10 +53,12 @@ export default class DetailedStatus extends ImmutablePureComponent {
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
media = <AttachmentList media={status.get('media_attachments')} />;
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
const video = status.getIn(['media_attachments', 0]);
media = (
<Video
preview={video.get('preview_url')}
src={video.get('url')}
sensitive={status.get('sensitive')}
media={status.getIn(['media_attachments', 0])}
letterbox={settings.getIn(['media', 'letterbox'])}
fullwidth={settings.getIn(['media', 'fullwidth'])}
onOpenVideo={this.props.onOpenVideo}

Loading…
Cancel
Save