如题,在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 |
本文讨论了音视频播放器在不同版本中对于缓冲区大小的调整情况,从2.3.7版本的512KBytes到5MBytes,再到4.0.3版本的4MBytes到20MBytes,并指出了这种变化对播放性能的影响。
2430

被折叠的 条评论
为什么被折叠?



