fix the generation of video preview attachments

pull/1387/head
Audric Ackermann 5 years ago
parent 363da7aa80
commit 7a13717739
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -103,6 +103,8 @@ exports.makeVideoScreenshot = ({
});
video.src = objectUrl;
// for some reason, this is to be started, otherwise the generated thumbnail will be empty
video.play();
});
exports.makeVideoThumbnail = async ({

@ -1,6 +1,4 @@
/* global textsecure: false */
/* global Whisper: false */
/* global loadImage: false */
/* global Backbone: false */
/* global _: false */
/* global Signal: false */
@ -26,7 +24,6 @@
});
},
render() {
this.attachmentListView.update(this.getPropsForAttachmentList());
this.trigger('staged-attachments-changed');
@ -184,6 +181,7 @@
const renderVideoPreview = async () => {
const objectUrl = URL.createObjectURL(file);
try {
const type = 'image/png';
const thumbnail = await VisualAttachment.makeVideoScreenshot({

Loading…
Cancel
Save