0

I would like the MediaPlayer to load the video from URL and not to search the local files - is it possible?

I receive the error message for the video from the external server:

MediaPlayer: setDataSource IOException happend 
java.io.FileNotFoundException: No content provider: https://www....video.mp4
...
Couldn't open file on client side, trying server side

The error appears for the line:

mediaPlayer.setDataSource(VideoActivity.this,videoUri);

Important: eventually the app loads and displays correctly the video (dispite the fact that the error appears)!

RKRK
  • 1,284
  • 5
  • 14
  • 18
Annabelle
  • 734
  • 9
  • 23

0 Answers0