handle errors for videos when uploading
This commit is contained in:
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…
x
Reference in New Issue
Block a user