The issue with audio file keep playing the latest input file was really bugging me … I tried different ways to try alternative way/workaround and here is my summary. I am hoping here someone can chime in to help based on my experiments
Things which did not work
- Tried … stop audio block before and after play button … did not work.
- Tried …delay wait block before and after did not work
- Converted all files to different format ogg, wav, MP4 … form mp3 … did not work
- Passed to play (null) or play blank text box… before and after play… did not work
- Instead of file block passed file name using text box did not work.
- Uploaded files to claudinary loaded url as input did not work
- Instead of play tried resume block did not work
Partially working solution
-
Used video component instead of sound … this works but there is delay before file is played… also looping is delayed .
-
Instead passing file directly. Passed value using url of uploaded file block … this work but there is delay in uploading and then getting url.
Thunkable team
- Can sound component be in the design block so that multiple players can be added each assigned to multiple audio files. Like video component
- Can you add block for looping or releasing or assigning audio file to sound blocks
Let’s discuss any other workarounds you can think for this issue…
Thank you