IJKPlayer drag the playback progress will lead to re-request data, not using good data has been buffered, so it should try to control the buffer size, reduce unnecessary data loss.
mMediaPlayer.setOption (IjkMediaPlayer.OPT_CATEGORY_PLAYER, "max-buffer-size", 100 * 1024); // Set the buffer is 100KB, currently my opinion, more than 4 seconds buffer
mMediaPlayer.setOption (IjkMediaPlayer.OPT_CATEGORY_PLAYER, "min-frames ", 100); // video, then, 100 is provided frames, that start playing
After playing for some time to resolve the error:
mMediaPlayer.setOption (IjkMediaPlayer.OPT_CATEGORY_FORMAT, "reconnect", 1); // re-connection mode, if the server is disconnected halfway, it reconnects, reference https://github.com/Bilibili/ijkplayer/issues/445
Reproduced in: https: //www.cnblogs.com/justkeepmoving/p/7871745.html