node-red/node-red-dashboard

ui_audio reset resets only the latest audio.

Opened this issue · 1 comments

What are the steps to reproduce?

Use two audio files for ui_audio

  • one longer, e.g. background music
  • one short, e.g. exclamation mark
  • add third, button to send msg.reset.
    After activating background music and afterwards shorter audio, it is impossible to stop background music.

What happens?

Latest, in this example short audio, is stopped if playing. Previous is left playing.

What do you expect to happen?

To both stop playing.

Please tell us about your environment:

  • Node-RED-Dashboard version: 3.6.5
  • Node-RED version: 3.1.9
  • node.js version: 22.0
  • npm version: 10.5.1
  • Platform/OS: 22.04lts
  • Browser: chrome

What are the steps to reproduce?

Inject twice to send an audio to ui_audio and then inject reset. Only latter stops playing.

How to circumvent?

Use different audio channel like raspbian own audio out

How not to circumvent?

Using multiple ui_audio nodes does not current help as they are synced.