My videoview video is uploaded via the Internet (player.setVideoURI (Uri.parse ("example.com/1.mp4"));)
How to know when it was loaded and ready for viewing
I think you need to install callback
public void setOnPreparedListener (MediaPlayer.OnPreparedListener l)
The documentation says that the specified callback will be called when the data is loaded. Link - public void setOnPreparedListener (MediaPlayer.OnPreparedListener l)
public void onPrepared (MediaPlayer mp) {// code to execute after video download}
Source: https://ru.stackoverflow.com/questions/206958/
All Articles