Server side stream recording


#1

Can we record streams on server side?
Do we need to use N.API, or Erizo?

Using Erizo server side with following code snippet from testErizo.js file in BasicExample direcotory
/* globals Erizo */
‘use strict’;
var Erizo = require(’./erizo’);

module.exports = function(roomToken) {
   this.token = roomToken;
   this.CreateRoom = function() {
    var room = Erizo.Room({token : this.token});
  };
};

But it gives following error in Erizo,js file:

[Script Loader] ReferenceError: window is not defined                                                                                                                          
    at eval (eval at <anonymous> (/licode/extras/basic_example/erizo.js:11101:9), <anonymous>:268:5)
    at module.exports (/licode/extras/basic_example/erizo.js:11101:9)
    at Object.<anonymous> (/licode/extras/basic_example/erizo.js:11075:24)
    at __webpack_require__ (/licode/extras/basic_example/erizo.js:21:30)
    at Object.<anonymous> (/licode/extras/basic_example/erizo.js:3157:1)
    at __webpack_require__ (/licode/extras/basic_example/erizo.js:21:30)
    at DEBUG (/licode/extras/basic_example/erizo.js:64:18)
    at Object.<anonymous> (/licode/extras/basic_example/erizo.js:67:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

Any Idea Thanks
UPDATE: It seems like Erizo.js is depends on window browser object