yixia / VitamioBundle

Vitamio for Android
http://www.vitamio.org/en/
Other
5.27k stars 2.07k forks source link

Buffer size with rtmp live radios #404

Open vicpinm opened 8 years ago

vicpinm commented 8 years ago

Hi, I want to increase buffer size with live radio streaming in order to increase playback time if user lost his internet connection. So I have mPlayer.setBufferSize(5 * 1024 * 1024);, but nothing changes. Radio streaming playback do buffering for the same time at start, and if I remove internet connection, playback continues for the same time until it stops. If I set mPlayer.setBufferSize(5000 * 1024 * 1024);, nothing changes. I set buffer size before I do setDataSource() and prepareAsync(). Is there any way to increase buffer for live streaming links?