Open MhmudAlpurd opened 2 years ago
What I explored that might work is using the onFrameCapturedListener object, sample code as follow:
val view: MjpegSurfaceView = binding.mjpegView
view.setOnFrameCapturedListener(object: OnFrameCapturedListener {
override fun onFrameCaptured(bitmap: Bitmap) {
// do you action here
Log.i("this","hihi")
}
override fun onFrameCapturedWithHeader(bitmap: ByteArray, header: ByteArray) {
// do you action here
Log.i("this","hihi2")
}
})
Hi @niqdev, thank you for this library. I need to use the output of ipcam-view as bitmap. Could you guide me on how to do it, please?