Open aacanakin opened 8 years ago
I guess that in addition to the existing RtspServer.MESSAGE_STREAMING_STARTED
and RtspServer.MESSAGE_STREAMING_STOPPED
callback messages the RtspServer
should post two more messages like RtspServer.MESSAGE_CAMERA_LOCKING
and RtspServer.MESSAGE_CAMERA_RELEASED
that could be used to stop/start external preview mode...
In example 1, a new rtsp server service is triggered and it doesn't show the camera preview unless a client connects. I want to use the example 1 approach but I want to still show the camera preview to the surface view.
mSession.startCameraPreview()
throwsCameraInUseException
when the client connects.Is there any way to do this?