3

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.

MrSiro
  • 281
  • 1
  • 4
  • 16

2 Answers2

2

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

    mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565);
Manuel Escrig
  • 2,825
  • 1
  • 27
  • 36
0

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

Mr.R.
  • 1
  • 1