MediaPlayerStream always show MEDIA_ERROR_UNKNOWN

sally3599

Member
Licensed User
Longtime User
A real device plays mp3 on website keep stopping and show MEDIA_ERROR_UNKNOWN!

Emulator will not stop but always show MEDIA_ERROR_UNKNOWN when play the 2nd mp3 in mp_Complete!

B4X:
Sub Activity_Create(FirstTime As Boolean)

    Activity.LoadLayout("Main")
   ProgressDialogShow("Loading ...")
            
   If FirstTime Then
       mp.Initialize("mp")
   End If
    
    mp.SetVolume (1, 1)
            
   mp.Load("http://website/my.mp3")

End Sub

Sub mp_Complete
    ToastMessageShow("mp Complete..." , True)
   mp.Stop
   mp.Load("http://website/my2.mp3")
   mp.Play
End Sub

Any help will be appreciate it.
 

Attachments

  • mp3player.zip
    7.5 KB · Views: 312

PhilipBrown

Active Member
Licensed User
Longtime User
Getting MEDIA_ERROR_UNKNOWN and it's not a media problem

I'm getting MEDIA_ERROR_UNKNOWN whenever I try to use MediaPlayerStream, whether using emulator or B4A-Bridge.

I've tested the media (mp3 file) using the tutorial MediaPlayer program and it works, so its not a problem with the file.

I attach test program which uses both MediaPlayer and MediaPlayerStream to demonstrate.
 

Attachments

  • MediaPlayerStreamingTest.zip
    11.2 KB · Views: 358
Upvote 0
Top