Question

I have found that the default video buffer size was set to 8 seconds in Gingerbread, so any clips shorter than this could not be played.

Is there any way to change default buffer size on streaming MediaPlayer?

Was it helpful?

Solution

As far as I know, there is not API support to do this. Soz.

All you can do is monitor how much of the buffer is filled.


Since you are doing this by yourself, change this:

   static int64_t kHighWaterMarkUs = 10000000ll;  // 10secs

It is the buffering time, and this :

  static const size_t kHighWaterMarkBytes = 200000;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top