I'm playing video from url = http://... /playlist.m3u8
MediaPlayer mVideoPlayer = new MediaPlayer();
...
mVideoPlayer.setDataSource(getApplicationContext(), url);
all works fine...but after 5 min video stops with error
11-24 17:52:22.519: V/MediaPlayer(2777): message received msg=100, ext1=1, ext2=-1004
11-24 17:52:22.519: E/MediaPlayer(2777): error (1, -1004)
11-24 17:52:22.519: V/MediaPlayer(2777): callback application
11-24 17:52:22.519: V/MediaPlayer(2777): back from callback
11-24 17:52:22.519: E/MediaPlayer(2777): Error (1,-1004)
I found in internet that this happens because http server close connection
How to solve this issue on my side?