Videoview bad quality when use vitamio library on some android device

1.1k views Asked by At

I am using Vitamio library into my project to play stream video.

It's worked fine on majority Android devices. But on some devices, video quality is very bad (example: Samsung galaxy Y S5360, LG L-07C,...)

I am used:

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

but it's still not change.

enter image description here

Please help me.

2

There are 2 answers

1
Manuel Escrig On

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

    mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565);
0
Mr.R. On

It looks like different pixel format of video and surface View. Set mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565); and mVideoView.getHolder().setFormat(PixelFormat.RGB_565);