Android Question MP3 stops after 20 seconds

GMan

Well-Known Member
Licensed User
Longtime User
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
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
Will give it a try ;-)
 
Upvote 0
Top