Android 视频进度条不允许点击其他按钮事件

Android 视频进度条不允许点击其他按钮事件,android,video-streaming,progress-bar,Android,Video Streaming,Progress Bar,我已经开发了在android应用程序中播放视频的模块。如果您看到附加的图像,视频将正常播放。但当进度条出现时,我将无法单击“跳过视频”按钮。如果进度条消失 图片链接: 代码如下: private VideoView video; public static MediaController mediaController; private Button viewReadingsButton; if (isViewReadingEnabled) {

我已经开发了在android应用程序中播放视频的模块。如果您看到附加的图像,视频将正常播放。但当进度条出现时,我将无法单击“跳过视频”按钮。如果进度条消失

图片链接:

代码如下:

private VideoView video;
public static MediaController mediaController;
private Button viewReadingsButton;


if (isViewReadingEnabled) {
                        ViewGroup.LayoutParams vparams = video
                                .getLayoutParams();
                        vparams.height = 480;
                        vparams.width = 800;
                        video.setLayoutParams(vparams);
                    }

                    video.setVisibility(View.VISIBLE);

                    if (isViewReadingEnabled) {
                        Log.i(TAGOXY,
                                "In BaseActivity:video():viewReadingsButton visible");
                        viewReadingsButton
                                .setBackgroundResource(R.drawable.video_skip_bg);
                        viewReadingsButton.setVisibility(View.VISIBLE);
                    }

                    video.refreshDrawableState();

                    // MediaController mediaController = new
                    // MediaController(BaseActivity.this);
                    mediaController = new MediaController(BaseActivity.this);
                    mediaController.setAnchorView(video);
                    mediaController.setPadding(200, 0, 0, 200);

                    // set the controllers to the video view
                    video.setMediaController(mediaController);
                    Log.i(TAGOXY,
                            "In BaseActivity:video():after MediaController");

                    video.setVideoURI(Uri.parse(loadVideoFileName));
                    Log.i(TAGOXY, "In BaseActivity:video():after setVideoURI");

                    // start the video
                    video.start();

在花了大量时间之后,我发现用我当前的代码是不可能的

由于我们使用Web视图加载HTML页面,现在我们使用插件在HTML页面本身中播放视频。在那里,我能够实现这个期望的功能