播放列表组合器
一个 javascript 模块,用于在多个用户的音乐队列中轮换。
用法
运行此代码:
var playlist = require ( 'playlist-combinator' ) ( )
playlist . on ( 'error' , function ( err ) {
console . log ( err )
} )
playlist . addUser ( 'Wheatley' , [ 'accent' ] )
playlist . addUser ( 'GLaDOS' )
playlist . addSong ( 'GLaDOS' , 'potato' )
playlist . addSong ( 'GLaDOS' , 'neurotoxin' )
playlist . addSong ( 'GLaDOS' , 'Caroline' )
内部:
1