You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'getStatus' of undefined
at [...]/chromecast-api/lib/device.js:179:19
at Device._tryJoin ([...]/chromecast-api/lib/device.js:146:29)
at Device.getStatus ([...]/chromecast-api/lib/device.js:174:10)
device.js.getStatus starts with calling this._tryJoin. tryJoin adds to the device the client and the player object. but if the device has a client and no player, it skips this. this means there is no player and this.player.getStatus fails.
The issue can be fixed by changing the guard close of _tryJoin from "if (this.client)" to "if (this.client && this.player)".
Have a nice day !
The text was updated successfully, but these errors were encountered:
device.js.getStatus starts with calling this._tryJoin. tryJoin adds to the device the client and the player object. but if the device has a client and no player, it skips this. this means there is no player and this.player.getStatus fails.
The issue can be fixed by changing the guard close of _tryJoin from "if (this.client)" to "if (this.client && this.player)".
Have a nice day !
The text was updated successfully, but these errors were encountered: