Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Comments in test.js

  • Loading branch information...
commit b680e1a6ab20571702260d045698fc572a432221 1 parent 765a8e8
@rumpl authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 test.js
View
10 test.js
@@ -2,12 +2,14 @@ var Naudio = require('./build/default/naudio').Naudio;
var naudio = new Naudio();
+/*
+// You can plays streams
naudio.play('http://72.13.81.178:8020', function () {
- console.log('first ended');
+ console.log('stream ended');
});
+*/
-setTimeout(function() {
- naudio.play('test.wav', function() { console.log('done')});
-}, 1000);
+// Or odrinary files.
+naudio.play('test.wav', function() { console.log('done')});
console.log('end');
Please sign in to comment.
Something went wrong with that request. Please try again.