alexeyvasilyev / rtsp-client-android

Lightweight low-latency RTSP client library for Android
Apache License 2.0
248 stars 68 forks source link

is there a listener to capture a decoded frame? #76

Closed yxdragon closed 2 months ago

yxdragon commented 4 months ago

I whant to snapshot a frame, and do some image analysis. I saw onRtspVideoNalUnitReceived can take the initial frame, but how can I get a decoded frame's rgb bytes?.

alexeyvasilyev commented 2 months ago

The best way is to use [RtspImageView](https://github.com/alexeyvasilyev/rtsp-client-android/blob/master/library-client-rtsp/src/main/java/com/alexvas/rtsp/widget/RtspImageView.kt). Assign onRtspImageBitmapListener to get RGB bitmaps.