[Solved] Sound playback not working

Anyone else having a problem with sound playback in Thunkable Live and TestFlight?

I have an app that was working fine and I haven’t changed the blocks on the screen where sound playback occurs.

But on iOS devices, there is no sound. It works fine on Android devices.

3 Likes

But maybe it’s just something corrupt in my project.

Because I wasn’t able to reproduce it in this one:

https://x.thunkable.com/copy/8613fd819662c48f4bb8d1173abb6da9

The rain sound starts right when the screen opens in Thunkable Live.

2 Likes

I’ve been having the same problem with Android Live and apk. No sounds. Just test this app you posted and same, no sound playback.

*since 03/18/21

1 Like

Now it’s working in Thunkable Live but not in a downloaded iOS app and not when published to TestFlight.

2 Likes

Another update:

On Android, everything works fine in Thunkable Live.

On iOS, no sound playback occurs in Thunkable Live.

When I check the “on error” event for sound play, I get “3: Error loading Source: undefined”

I’m using button text because labels are currently broken.

1 Like

Here’s a sample project that demonstrates the problem:

https://x.thunkable.com/copy/4c9196f805ea7083310ac270b7c31027

On an Android device, the sample sound starts playing and I see “file_example_MP3_700KB.mp3”

On an iOS device, there is no sound and I see “2: Error loading Source: undefined”

3 Likes

Thanks @tatiang and @hhuman - we’ve filed a bug report about this and should have an update for you later today

4 Likes

Thanks! Good to hear. I foolishly published an update to my app without checking all of its features and the sound play that had been working fine is now broken so I’m eager to publish another update with it fixed.

3 Likes

Hi @domhnallohanlon Any updates?

1 Like

Hey @tatiang - I mentioned this to someone on the chat support earlier today but a member of the team is looking at it. Looks like we’ll be updating to a newer library for Audio fiels, which in the short run might mean this needs an extra day for testing before it gets released, but longer terms will mean a better experience with Audio files for everyone (and not just on iOS!)

Will keep you all updated as I learn more, thanks!

4 Likes

Hello,

Where do you find “set sound” option? I do not see that in my Thunkable.

image

Thanks for your help.
Above code do not play the sound.

Hema.

1 Like

This is a known issue that just started not working and Thunkable staff are working to fix it.

Details:

1 Like

Thanks for your response.
It does not work on the laptop as well.

I am using Android phone.

Thanks,
Hema.

1 Like

This is an iOS issue. It should still work in Thunkable Live on an Android phone.

It may help to put the “call Sound1’s Play” block inside of the “when Sound1 on source loaded” block.

1 Like

Thanks. Unfortunately did not work on the phone or laptop.

Cheers,
Hema.

1 Like

No… on button click, set sound source. On source loaded, play sound.

See this project I made:

https://x.thunkable.com/copy/f359fd80da02abf34c3813d59bcf1aaf

1 Like

Thanks. Yes did similar , but no luck.

Does Thunkable accept .m4a fie or it has to be only mp3 file?

Thanks,
Hema.

1 Like

I don’t know. But I just read two topics here that say there may be problems playing .m4a fies. Try an .mp3 file and see if that works. For example, what happens when you Live Test my project (link above) on your device in Thunkable Live?

1 Like

I’m having no luck with mp3 on both ios and android. Are you sure this is only an iOS problem right now?

1 Like

Not sure… I just know it had worked on Android earlier.

An update:

2 Likes