`
modabobo
  • 浏览: 509294 次
文章分类
社区版块
存档分类
最新评论

android播放http流媒体时默认最低最高缓冲值在4.0.3版本上进行了修改

 
阅读更多
如题,在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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics