handle errors for videos when uploading
parent
30a69fae13
commit
447b0a74ee
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue