如题,在2.3.7版本上最低和最高值分别是512K Bytes和5M Bytes.。
enum {
kPageSize = 65536,
kHighWaterThreshold = 5 * 1024 * 1024,
kLowWaterThreshold = 512 * 1024,
// Read data after a 15 sec timeout whether we're actively
// fetching or not.
kKeepAliveIntervalUs = 15000000,
};
到了 4.0.3上,最低和最高值分别是4M和20M Bytes。
enum {
kPageSize = 65536,
kDefaultHighWaterThreshold = 20 * 1024 * 1024,
kDefaultLowWaterThreshold = 4 * 1024 * 1024,
// Read data after a 15 sec timeout whether we're actively
// fetching or not.
kDefaultKeepAliveIntervalUs = 15000000,
};
这样会导致在4.0.3及以后的版本需要缓冲较长的时间才能开始播放。
相关问题:
Issue29870: | MediaPlayer Buffer Size in ICS 4.0 |