libVLC 4: Black screen when using TextureView for video output
Description
I can't get video when using TextureView with libVLC4
implementation "org.videolan.android:libvlc-all:4.0.0-eap8"
Even sample activity on branch 4.0 is black screen after changing USE_SURFACE_VIEW = true;
to false
:
Expected behavior
Video is visible and playing
Actual behavior
Audio is playing, but no video displays (screen is black).
Steps to reproduce
- open java_sample project from libvlc-android-samples (branch 4.0)
- change USE_SURFACE_VIEW = true; to USE_SURFACE_VIEW = false;
- provide media (put bbb.m4v to assets or use any stream)
- build project and run on device
Screenshot / video
Context
Tested on emulator with Android 11 and Asus Tinkerboard S with Android 7