diff --git a/src/zm_remote_camera_http.cpp b/src/zm_remote_camera_http.cpp index bff7d83c1..35ba5b58c 100644 --- a/src/zm_remote_camera_http.cpp +++ b/src/zm_remote_camera_http.cpp @@ -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(); diff --git a/src/zm_remote_camera_http.h b/src/zm_remote_camera_http.h index d2bc96848..d9154608c 100644 --- a/src/zm_remote_camera_http.h +++ b/src/zm_remote_camera_http.h @@ -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();