How to take a snapshot of RTSP streaming using LibVLC for Android

I am using libVLC in an android application to stream RTSP. Since the video is uploaded via SurfaceView to libVLC, we cannot immediately take a picture.

So, how to support snapshot functions using LibVLC for Android?

One solution would be to upload a video via TextureView . We can use the getBitmap function to take a snapshot of the currently playing video using the getBitmap () function. How to add texture support to libVLC?

I went through the VLC source code. I found this snapshot.c file. Can I use this to enable snapshot features in Android?

+5
source share
1 answer

libVLC 2.1.12 supports the use of TextureView, so you can use getBitmap ().

+1
source

Source: https://habr.com/ru/post/1207066/


All Articles