GMan Well-Known Member Licensed User Longtime User Jul 20, 2023 #1 I am using the following code: B4X: Sub PlaySound Dim mp As MediaPlayer mp.Initialize() mp.Load(File.DirAssets, "sound.mp3") mp.Play End Sub The soundfile is about 1 minute, but the player stops after approx. 20 sec ?
I am using the following code: B4X: Sub PlaySound Dim mp As MediaPlayer mp.Initialize() mp.Load(File.DirAssets, "sound.mp3") mp.Play End Sub The soundfile is about 1 minute, but the player stops after approx. 20 sec ?
stevel05 Expert Licensed User Longtime User Jul 20, 2023 #2 Do you have a different mp3 to try?, that one could be corrupted in some way. Upvote 0
GMan Well-Known Member Licensed User Longtime User Jul 20, 2023 #4 Check - file was corrupt. Generated it again and now it works fine ! Upvote 0