VideoView uri更改,再次加载

时间:2015-12-16 03:53:20

标签: android

VideoView URI发生变化时,我希望mVideoView可以重新加载,我该怎么办? VideoView方法是:

    mVideoView.setVideoURI(Uri.parse(videoViewUri));
    if (mVideoView.isPlaying()) {
        mVideoView.stopPlayback();
        if (isWifi()) {
            mVideoView.start();
        }
        Log.i("quickshare_isshow", "heheheheheh");
    } else {
        if (isWifi()) {
            mVideoView.start();
            Log.i("uri", videoViewUri);
        }
    }

0 个答案:

没有答案