Android Question How to play local file in ExoPlayerTextureView

Asim A Baki

Active Member
Licensed User
Longtime User
I'm trying to play local file in
ExoPlayerTextureView

B4X:
    presenter.Source = source.Initialize("Source","/mnt/sdcard/media/Epic.2013.mkv","agent",64*1024,32)

but I get this error
B4X:
Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /mnt/sdcard/Epic.2013.mkv
 

Asim A Baki

Active Member
Licensed User
Longtime User
You should never write /mnt/sdcard.

I'm not familiar with ExoPlayerTextureView. With the standard ExoPlayer library it is done with CreateFileSource.
I tried different folders like DirAssets but still the same
Normal ExoPlayer is unable to play multiple videos on AmLogic
 
Upvote 0
Top