Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现 Gingerbread 中的默认视频缓冲区大小设置为 8 秒,因此任何比这短的剪辑都无法播放。
有没有办法改变流媒体播放器的默认缓冲区大小?
据我所知,没有 API 支持来做到这一点。索兹。
您所能做的就是监控缓冲区的填充量。
由于您是自己执行此操作,因此请更改以下内容:
static int64_t kHighWaterMarkUs = 10000000ll; // 10secs
这是缓冲时间,这是:
static const size_t kHighWaterMarkBytes = 200000;