Android videoview可播放徽标

时间:2015-11-20 06:00:20

标签: android video

您好我的Android编码有视频浏览器,我想在它停止时将可播放的徽标叠加在其上,但是当它正在播放时,徽标会消失,我该怎么办?

这是我对videoview的编码

final VideoView videoView = (VideoView)rootView.findViewById(R.id.videoview);
    videoView.setVideoURI(Uri.parse("android.resource://" + getActivity().getPackageName() + "/" + R.raw.complete));
    videoView.setMediaController(new MediaController(getActivity().getApplicationContext()));
    videoView.requestFocus();

    videoView.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            if (event.getAction() == MotionEvent.ACTION_UP) {
                if (videoView.isPlaying()) {
                    videoView.pause();
                } else {
                    videoView.start();
                }
            }
            return true;
        }
    }); 

0 个答案:

没有答案