How to use the @svrooij/sonos.SonosEvents.CurrentTransportState function in @svrooij/sonos

To help you get started, we’ve selected a few @svrooij/sonos examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github svrooij / sonos2mqtt / src / bridge.js View on Github external
function cancelSubscriptions (device) {
  device.Events.removeAllListeners(SonosEvents.CurrentTrack)
  device.Events.removeAllListeners(SonosEvents.CurrentTrackMetadata)
  device.Events.removeAllListeners(SonosEvents.CurrentTransportState)
  device.Events.removeAllListeners(SonosEvents.Mute)
  device.Events.removeAllListeners(SonosEvents.Volume)
}