再会。我可以在接受视频流时更改缓冲区大小吗?我正在使用 udp 进行流式传输,这是我的示例代码:
vv = (VideoView) findViewById(R.id.video);
MediaController mc = new MediaController(this);
vv.setMediaController(mc);
Uri video = Uri.parse("udp://@239.239.1.1:1234");
vv.setVideoURI(video);
vv.setVisibility(View.VISIBLE);
vv.setOnPreparedListener(new OnPreparedListener(){
@Override
public void onPrepared(MediaPlayer arg0) {
// TODO Auto-generated method stub
vv.start();
}
});