Sie sind nicht angemeldet.

1

Dienstag, 19. September 2023, 20:18

Tour crashing on mobile

Hello guys. I have this tour that is crashing only on mobile devices. It looks like there is a redirect loop. But this is happening only in this project, other projects are working as expected. Can someone help me debug what is going on?

View tour

2

Dienstag, 19. September 2023, 21:18

Hi,

I think it might your .mp3 sound file - it is huge (~58MB).

Note - the playsound action uses the WebAudio API and that API fully loads and decodes the sound file before playing - and a compressed 58MB mp3 files needs as decoded sound samples surely an huge amount of memory (in your case: 2428sec * 44100hz * 32bit * 2stereo = ~817MB).

Try using streamsound instead - that will load and play the file chunk-wise and use much less memory.

Best regards,
Klaus

3

Dienstag, 19. September 2023, 21:32

Hi,

I think it might your .mp3 sound file - it is huge (~58MB).

Note - the playsound action uses the WebAudio API and that API fully loads and decodes the sound file before playing - and a compressed 58MB mp3 files needs as decoded sound samples surely an huge amount of memory (in your case: 2428sec * 44100hz * 32bit * 2stereo = ~817MB).

Try using streamsound instead - that will load and play the file chunk-wise and use much less memory.

Best regards,
Klaus



Hi Klaus, thank you for replying. I was thinking the same. I'll guide the client to use a lighter mp3 file and try to use this plugin you suggested.

Thanks again, best regards.

4

Mittwoch, 20. September 2023, 19:12

try to use this plugin you suggested.

*confused* ...no plugin, just change 'playsound' to 'streamsound' in your html file... a simple and easy change...

5

Mittwoch, 20. September 2023, 19:27

try to use this plugin you suggested.

*confused* ...no plugin, just change 'playsound' to 'streamsound' in your html file... a simple and easy change...



LOL I meant Action, typed in a hurry. Thanks again.