Hi!
I tried this, but the MP3 file will not be played:
The MP3 file is ok, it works with B4A.
I attached an example project.
Does anyone have an idea?
Regards, Timm
I tried this, but the MP3 file will not be played:
B4X:
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Public MediaPlayer1 As MediaPlayer
Private Page1 As Page
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("Page1")
NavControl.ShowPage(Page1)
End Sub
Sub Button1_Click
Log( File.Exists( File.DirAssets, "ton1.mp3" ) ) 'returns true
MediaPlayer1.Initialize( File.DirAssets, "ton1.mp3", "mp" )
MediaPlayer1.Play
End Sub
The MP3 file is ok, it works with B4A.
I attached an example project.
Does anyone have an idea?
Regards, Timm