Skip to content

Commit

Permalink
0.3: Update stream example
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yu committed Dec 3, 2014
1 parent 0b5f5ed commit 48afcec
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ var player = new Player('http://stream.srg-ssr.ch/m/rsp/mp3_128', {
stream: true
});

player.play(function(err) {
debug('All songs play end');
});
player.play();

player.on('playing', function(song) {
debug('Playing... ');
debug(song);
});

player.on('playend', function(song) {
debug('Playend');
});

player.on('error', function(err) {
debug('Opps...!')
debug(err);
Expand Down

0 comments on commit 48afcec

Please sign in to comment.