Commit ffcf9d79 authored by Jan Göttlich's avatar Jan Göttlich

finished debugging and ready to test the webvtt stuff
parent 252043ce
......@@ -41,7 +41,15 @@ exports.generateThumbnails = function(source, options, callback) {
}
function success(filenames) {
callback(null, filenames)
//TODO: Find a less hacky method to solve the problem that no filenames are returned
let myfiles = [],
aOutput = this._outputs;
for(let item of aOutput){
myfiles.push(item.target.replace(/^.*[\\\/]/, ''));
}
console.log(myfiles);
callback(null, myfiles)
}
}
......
......@@ -7,7 +7,7 @@ thumbgen('./tmp/oceans.mp4', {
size: {
width: 100
},
numThumbnails: 6,
numThumbnails: 10,
spritesheet: true
}, function(err, metadata) {
if (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment