I am using libVLC in an Android application for RTSP streaming. Since video is loaded over SurfaceView in libVLC, we cannot take snapshot directly.
So how to support snapshot functionality with LibVLC for Android?
One solution would be by loading the video over TextureView. We can use getBitmap function to get the snapshot of currently playing video using the function getBitmap(). How to add support for textureView in libVLC?
I have gone through the source code VLC. I found this file snapshot.c. Is it possible to use this to enable snapshot functionality in Android?
libVLC 2.1.12 supports using a TextureView, so you can use getBitmap().