Videoview poor quality when using vitamio library on some android devices

I am using Vitamio library in my project to play streaming video.

It worked great on most Android devices. But on some devices the video quality is very poor ( example : Samsung Galaxy Y S5360, LG L-07C, ...)

I use:

mVideoView.setVideoURI(uri);
mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_HIGH);
mVideoView.getHolder().setFormat(PixelFormat.RGBX_8888);

      

but it still doesn't change.

enter image description here

Please help me.

+3


source to share


2 answers


I just found the answer. Just put this line when you initialize VideoView:



    mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565);

      

+2


source


It is similar to other video and surface aspect ratio. Install mVideoView.setVideoChroma (MediaPlayer.VIDEOCHROMA_RGB565); and mVideoView.getHolder (). setFormat (PixelFormat.RGB_565);



0


source







All Articles