Android Question I want to play the file online by MediaPlayer

alfaiz678

Active Member
Licensed User
Hello, I want to play the file online
Without downloading it to my mobile
Can I do that by

B4X:
Dim MP As MediaPlayer 'should be done in Sub Process_Globals
MP.Initialize2("MP")
MP.Load(File.DirAssets, "SomeFile.mp3")
MP.Play
 

DonManfred

Expert
Licensed User
Longtime User
How is "play the file online by MediaPlayer" related to File.DirAssets?
Mediaplayer can only play local files.

To use Files from a URL you need to use ExoPlayer

 
Last edited:
Upvote 0
Top