I have been developing video advertisement android app, but I need one help to play HD videos in VideoView
in android version 4.2.2.
I have download the all the videos in internal storage and I have to play this video in one screen like this
But now some video is in Full HD and that video is not playing in video view in specially android version 4.2.2 and detect the error like this
E/MediaPlayer: Error (-38,0)
so what should I do, I have search many things or many github libraries like ExoPlayer
, EasyPlayer
but in this library is also not playing Full HD Videos in android version 4.2.2.
I need help.
I have been playing video in VideoView
with following code.
MediaController controller = new MediaController(this);
videoView.setVideoURI(Uri.parse(pathVideo));
videoView.setMediaController(controller);
controller.setMediaPlayer(vv);
videoView.setOnPreparedListener((MediaPlayer.OnPreparedListener) mContext);
videoView.setOnCompletionListener((MediaPlayer.OnCompletionListener) mContext);
videoView.setOnErrorListener((MediaPlayer.OnErrorListener) mContext);
videoView.start();