thunkable / thunkable-issues

24 stars 9 forks source link

No way of knowing if sound playing is done #1235

Open vaskarni opened 1 year ago

vaskarni commented 1 year ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

The more info, the faster we will be able to address it!

Platform

Does this affect: Drag and Drop UI - web? Yes Drag and Drop UI - Android? Yes Drag and Drop UI - iOS? Yes

Steps to Reproduce

  1. Add a button to UI. Add a sound component. Load two mp3 files into assets.
  2. When button clicked - play sound (first mp3 file loaded)
  3. Note: There is pause, resume, stop blocks. There is a "is --- paused?" block.
  4. But there is no way of knowing the song playing is complete, so you can automatically play second mp3 file. There is no block or event to poll or any way of knowing the song is done playing.

Expected Behavior

What did you expect to happen? The code to know in some deterministic way that 'play' is complete.

Actual Behavior

What actually happens? song is done playing. Code does not know how to play next song.

Project Link

Link to a project copy that shows this behaviour. This is important because most times we cannot reproduce the issues reported just with the list of steps, so please do provide this. This can easily be produced.

Community Link

If there's an ongoing discussion about this behavior in the Community, please link to it here

  STACK TRACE AND/OR SCREENSHOTS
agvardha57 commented 1 year ago

Same issue I also faced. https://community.thunkable.com/t/how-to-play-multiple-audio-files-in-series/2361744/2 Please note with the "speech" module you can stack them and they work in series. So there is hint for you to see in the source and fix the play button.