handle errors for videos when uploading

pull/1/head
ansuz 2017-10-24 13:45:27 +02:00
parent 30a69fae13
commit 447b0a74ee
1 changed files with 3 additions and 0 deletions

View File

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