Reputation: 291
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.
Please help me.
Upvotes: 3
Views: 1158
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
Reputation: 2835
I just found the answer. Just put this line when initialising the VideoView:
mVideoView.setVideoChroma(MediaPlayer.VIDEOCHROMA_RGB565);
Upvotes: 2