MrSiro
MrSiro

Reputation: 291

Videoview bad quality when use vitamio library on some android device

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.

Upvotes: 3

Views: 1158

Answers (2)

Mr.R.
Mr.R.

Reputation: 1

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

Upvotes: 0

Manuel Escrig
Manuel Escrig

Reputation: 2835

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

    mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565);

Upvotes: 2

Related Questions