handle errors for videos when uploading

pull/1/head
ansuz 7 years ago
parent 30a69fae13
commit 447b0a74ee

@ -118,6 +118,9 @@ define([
Thumb.fromCanvas(video, D, cb); Thumb.fromCanvas(video, D, cb);
}); });
}); });
video.addEventListener('error', function (e) {
cb('ERROR');
});
}; };
Thumb.fromBlob = function (blob, cb) { Thumb.fromBlob = function (blob, cb) {
if (blob.type.indexOf('video/') !== -1) { if (blob.type.indexOf('video/') !== -1) {

Loading…
Cancel
Save