Closed DongPhamBK closed 1 month ago
So, your start RtspSurfaceView
with url1
, then stop it, assign url2
and start it again. Am I right?
Looks like stop()
method was not called.
Tried to reproduce the issue on demo app LiveFragment and everything works as expected (no any issues).
I tried delaying a bit before switching between the 2 urls, and it worked, maybe the problem is with my device, it's quite weak. Thank you for your feedback.
I need to switch between 2 rtsp links on the same RtspSurfaceView. When I do this (refer to the code below). But the video is wrong and seems to show a combination of images between the 2 rtsp links. Can you suggest any ideas, thanks!
Ex: fun switchCamera(url: String){ if (binding.svVideo.isStarted()) { binding.svVideo.stop() }