Add PrimeCapture to zm_remote_camera_http. PrimeCapture is used to determine if we can connect and so by not implementing it, monitors like this say capturing even though they are not.

This commit is contained in:
Isaac Connor 2020-08-08 10:21:06 -04:00
parent ec7f6034fa
commit bf2cb5fb1f
2 changed files with 13 additions and 0 deletions

View File

@ -1069,6 +1069,18 @@ int RemoteCameraHttp::GetResponse() {
return( 0 );
}
int RemoteCameraHttp::PrimeCapture() {
if ( sd < 0 ) {
Connect();
if ( sd < 0 ) {
return -1;
}
mode = SINGLE_IMAGE;
buffer.clear();
}
return 0;
}
int RemoteCameraHttp::PreCapture() {
if ( sd < 0 ) {
Connect();

View File

@ -55,6 +55,7 @@ public:
int ReadData( Buffer &buffer, unsigned int bytes_expected=0 );
int GetData();
int GetResponse();
int PrimeCapture();
int PreCapture();
int Capture( Image &image );
int PostCapture();