android播放http流媒体时默认最低最高缓冲值在4.0.3版本上进行了修改
2014-03-11 14:55
337 查看
如题,在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及以后的版本需要缓冲较长的时间才能开始播放。
相关问题:
Issue 29870: | MediaPlayer Buffer Size in ICS 4.0 |
相关文章推荐
- android xml 怎么设置版本最低和最高!
- Android WIFI源码思路(对文章进行一些修改,以适于Android4.0版本)
- android4.0.3修改camera预览大小分辨率和视频播放分辨率大小
- Linux、ubuntu下pip安装aiohttp失败,修改python默认版本
- 修改 Android 系统默认语言版本
- 通过修改linux系统默认的TCP或UDP mem大小解决开发板播放流媒体片源卡顿或马赛克问题
- android KK版本,如何修改蓝牙默认名称
- 修改 Android 系统默认语言版本
- xcode 4 最低的要求是 10.6.6的版本,如果你是 10.6.3的版本,又不想升级的话。可以考虑通过修改版本号的方法进行安装
- eclipse 编译器的版本默认是1.5只需修改成1.6即可Android requires compiler compliance level 5.0. Please
- 修改ubuntu的默认python版本
- 修改 Android 5.1 默认设置
- 保持长宽比 对背景图像进行修改android:scaleType="fitXY"
- 【原】eclipse创建maven工程时,如何修改默认JDK版本?
- android 6.0(api 23) SDK以上版本 org.apache.http.*不支持解决办法
- android修改开机自动默认设置
- Android系统移植与调试之------->如何修改Android的默认语言、默认时区
- 展讯Android 默认音量修改
- 如何修改Android应用程序能够使用的默认最大内存值
- android 修改照片的命名方式导致连拍照片不能以动画形式播放