Skip to content

Commit 48afcec

Browse files
committed
0.3: Update stream example
1 parent 0b5f5ed commit 48afcec

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

examples/stream.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ var player = new Player('http://stream.srg-ssr.ch/m/rsp/mp3_128', {
66
stream: true
77
});
88

9-
player.play(function(err) {
10-
debug('All songs play end');
11-
});
9+
player.play();
1210

1311
player.on('playing', function(song) {
1412
debug('Playing... ');
1513
debug(song);
1614
});
1715

18-
player.on('playend', function(song) {
19-
debug('Playend');
20-
});
21-
2216
player.on('error', function(err) {
2317
debug('Opps...!')
2418
debug(err);

0 commit comments

Comments
 (0)