Android Question Play song

guenneguez_t

Member
Licensed User
Longtime User
I try to play song with this code :
Player.Initialize
Player.SetVolume(1, 1)
Player.Load(File.DirAssets, "bip1.mp3")
Player.Play
And nothing is play
 

asales

Expert
Licensed User
Longtime User
Did you hear the bip1.mp3 in another player?

I use this code and works fine:
B4X:
Dim player As MediaPlayer
player.Initialize2("player")
player.Load(File.DirAssets,"mymusic.mp3")
player.Play
If don't works, create an example and put the file here.
 
Upvote 0
Top