Android Question Mediaplayer Endless Loop

kohle

Active Member
Licensed User
Longtime User
Hi,
endless loop of music file with mediaplayer :

This dont work :
B4X:
Dim backgroundMusic As MediaPlayer
backgroundMusic.Initialize
backgroundMusic.Looping=True
backgroundMusic.Load(File.DirAssets,"m7.ogg")

This works and why not the first version?
B4X:
Dim backgroundMusic As MediaPlayer

backgroundMusic.Initialize

backgroundMusic.Load(File.DirAssets,"m7.ogg")
backgroundMusic.Looping=True
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top