ircの開発チームから直接Spotifyクライアントのバグであることが確認されました。これは修正+一般的なイベントインターフェースのような他のキャンディーです。
https://gist.github.com/bc1a7e1c06c1077f238d(エミッターはコンポーネントリポジトリhttps://github.com/component/emitterから取得されます)
私のパッチを使用すると、次のようなことができます。
var sp = getSpotifyApi(1)
var models = sp.require('sp://import/scripts/api/models')
var player = sp.require('player-fix').player
window.onload = function init() {
console.log('subscribing')
player.on('play', function () {
console.log('play')
}).on('pause', function () {
console.log('pause')
}).on('trackChange', function (track) {
console.log('trackChange', track.data.name)
}).on('shuffleChange', function (shuffle) {
console.log('shuffleChange', shuffle)
}).on('repeatChange', function (repeat) {
console.log('repeatChange', repeat)
}).on('volumeChange', function (volume) {
console.log('volumeChange', volume)
}).on('contextChange', function () {
console.log('contextChange')
})
}