Low quality when using TextureView, but subtitles not showing when using SurfaceView
I am creating my Player like this.
`
private void createPlayer(boolean useTexture) {
ArrayList<String> options = new ArrayList<>();
options.add("-vvv");
options.add("--rtsp-tcp");
final Context context = getContext();
libVLC = new LibVLC(context, options);
mediaPlayer = new MediaPlayer(libVLC);
IVLCVout vout = mediaPlayer.getVLCVout();
mediaPlayer.setEventListener(this); // Register the event listener
mVideoLayout = view.findViewById(R.id.test_video_layout);
mediaPlayer.getVLCVout().setWindowSize(mVideoLayout.getWidth(), mVideoLayout.getHeight());
mediaPlayer.attachViews(mVideoLayout, null, true, useTexture);
}
` and this is my Layout file
`
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center">
<org.videolan.libvlc.util.VLCVideoLayout
android:id="@+id/test_video_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="false">
</org.videolan.libvlc.util.VLCVideoLayout>
</RelativeLayout>
When i set the textureview true the video quality is low and the colors of some videos are very different from the original video. But when i set the textureview false the video quality and colors are okey. but subtitles not showing.
VLC version "org.videolan.android:libvlc-all:3.6.0-eap9"
Devices smartphone, android tv, tablets
What i am doing wrong?