mVideoView = (PLVideoView) findViewById(R.id.VideoView);
View loadingView = findViewById(R.id.LoadingView);
mVideoView.setBufferingIndicator(loadingView);
mVideoPath = getIntent().getStringExtra("videoPath");
AVOptions options = new AVOptions();
<BUG>if (isLiveStreaming(mVideoPath)) {
options.setInteger(AVOptions.KEY_PREPARE_TIMEOUT, 10 * 1000);</BUG>
options.setInteger(AVOptions.KEY_GET_AV_FRAME_TIMEOUT, 10 * 1000);
<BUG>options.setInteger(AVOptions.KEY_LIVE_STREAMING, 1);

}</BUG>
int codec = getIntent().getIntExtra("mediaCodec", 0);

mVideoView = (PLVideoView) findViewById(R.id.VideoView);
View loadingView = findViewById(R.id.LoadingView);
mVideoView.setBufferingIndicator(loadingView);
mVideoPath = getIntent().getStringExtra("videoPath");
AVOptions options = new AVOptions();
int isLiveStreaming = getIntent().getIntExtra("liveStreaming", 1);
options.setInteger(AVOptions.KEY_PREPARE_TIMEOUT, 10 * 1000);
options.setInteger(AVOptions.KEY_GET_AV_FRAME_TIMEOUT, 10 * 1000);
options.setInteger(AVOptions.KEY_LIVE_STREAMING, isLiveStreaming);
if (isLiveStreaming == 1) {
options.setInteger(AVOptions.KEY_DELAY_OPTIMIZATION, 1);
}
int codec = getIntent().getIntExtra("mediaCodec", 0);
