protected void onPostExecute(String pClip) { mVideoView.setVideoPath(pClip); mVideoView.setOnPreparedListener( new OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { mVideoView.setPlayable(true); } }); mVideoView.setOnErrorListener( new OnErrorListener() { @Override public boolean onError(MediaPlayer mp, int what, int extra) { return false; } }); }
public LoadVideoTask(CenterCropVideoView videoView, String video, Context context) { mVideoView = videoView; mVideo = video; mContext = context; mVideoView.setPlayable(false); }