I am having issues integrating recorder.js into my meteor project. https://github.com/mattdiamond/Recorderjs
In the main script there is a reference to another file called recorderWorker.js
Every time I try to call the record();
function it wraps this code with:
(function(){
if (Meteor.isClient) {
})();
and then in console I get an error:
Uncaught ReferenceError: Meteor is not defined
I have tried moving the file to a meteor server
directory but it still wraps it as above
Background: I am new to javascript and Meteor what I am trying to do?: I am trying to create a web audio api player that plays an mp3 on one track and records voice on another track.
I understand that I should create a package for this third-party javascript but I would like to see it work before tackling how to create a meteor package.