mirror of
https://github.com/wahyd4/play-sound.git
synced 2026-08-09 04:46:23 +10:00
10 lines
212 B
JavaScript
10 lines
212 B
JavaScript
function Play(opts){
|
|
this.child_process = opts.child_process
|
|
this.play = function(what){
|
|
if (what) this.child_process.exec('cvlc ' + what)
|
|
}
|
|
}
|
|
module.exports = function(opts){
|
|
return new Play(opts)
|
|
}
|