Fix video playback in glitch-soc detailed statuses
This commit is contained in:
parent
3ab6a8b8be
commit
a896f601fa
|
@ -53,10 +53,12 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
||||||
media = <AttachmentList media={status.get('media_attachments')} />;
|
media = <AttachmentList media={status.get('media_attachments')} />;
|
||||||
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
|
||||||
|
const video = status.getIn(['media_attachments', 0]);
|
||||||
media = (
|
media = (
|
||||||
<Video
|
<Video
|
||||||
|
preview={video.get('preview_url')}
|
||||||
|
src={video.get('url')}
|
||||||
sensitive={status.get('sensitive')}
|
sensitive={status.get('sensitive')}
|
||||||
media={status.getIn(['media_attachments', 0])}
|
|
||||||
letterbox={settings.getIn(['media', 'letterbox'])}
|
letterbox={settings.getIn(['media', 'letterbox'])}
|
||||||
fullwidth={settings.getIn(['media', 'fullwidth'])}
|
fullwidth={settings.getIn(['media', 'fullwidth'])}
|
||||||
onOpenVideo={this.props.onOpenVideo}
|
onOpenVideo={this.props.onOpenVideo}
|
||||||
|
|
Reference in New Issue