How to Play MP3 file in Mediaplayer

selvamurali

Active Member
Licensed User
Longtime User
dear Team

i used the following code to play mp3 file but it shows File not found Exception

Sub Globals
Dim sp As MediaPlayer
End Sub

Sub Activity_Create(FirstTime As Boolean)
sp.Initialize2("sp")
sp.Load(File.DirAssets,"Kalimba.mp3")
sp.Play
End Sub

but when i use .mid file it play well.

help me
 

Informatix

Expert
Licensed User
Longtime User
dear Team

i used the following code to play mp3 file but it shows File not found Exception

Sub Globals
Dim sp As MediaPlayer
End Sub

Sub Activity_Create(FirstTime As Boolean)
sp.Initialize2("sp")
sp.Load(File.DirAssets,"Kalimba.mp3")
sp.Play
End Sub

but when i use .mid file it play well.

help me

The first letter of your file should be in lowercase
 
Upvote 0
Top