Downloader.on("progress", function(progress) {
console.log(progress);
Progress.update({'videoId': videoId},
{$set: {progress: progress}},
{multi: true});
});
The error I am getting is: Metoer code must always run within a Fiber. Try wrapping callbacks that you pass to non meteor libraries with Meteor.bindEnviroment
It works if I remove the progress.update.
I have tried
Meteor.bindEnvironment((err, res) => {
console.log(progress);
Progress.update({'videoId': videoId},
{$set: {progress: progress}},
{multi: true});
});
But still no good