19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
"use strict";
|
|
|
|
const ChildProcessEmitter = require('./child-process').ChildProcessEmitter;
|
|
|
|
class MediaPlayer extends ChildProcessEmitter {
|
|
constructor(config, logger) {
|
|
super(config.mpg321, logger);
|
|
this.stderrFilters.push(line => {
|
|
return line.substr(0, 3) == '@F '
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = function(config, logger) {
|
|
return new MediaPlayer(config, logger);
|
|
};
|
|
|
|
// vim:set ts=2 sw=2 et:
|