1

We are developing an android application which shows a rtsp stream in the VideoView control. The following code is used the show the video. Its in a runnable.

mProgressDlg.show();
mVideoView.requestFocus();
mVideoView.setVideoURI(uri);
mVideoView.startVideo();

We have registered the setOnPreparedListener of the VideoView. In the onPrepared method we are dismissing the mProgressDlg.

The code is working fine upto ICS version. But in JB its working fine, but the onPrepared method is firing fastly than other OS. So the progress bar is not showing. It is just appearing and disappearing.

Hope I described the issue correctly. Any solution for this?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.