Home > other >  Hai kang camera secondary development multiple cameras and videos and screenshots
Hai kang camera secondary development multiple cameras and videos and screenshots

Time:09-18

Webcam models: DS - 2 cd3t46wda2 -l

The development environment and the development language

The eclipse JAVA

Good big!

I think at the same time to grab two of the same type of hai kang camera capture, as well as the method of using NET_DVR_RealPlay, record the video of two cameras at the same time,
But every time can only be captured, recorded the contents of a camera, there is no question of individual videos and screenshots,

Screenshots use method is:
Sdk.NET _DVR_CaptureJPEGPicture_NEW (idLong chanLong, jpeg, jpegBuffer1, 1024 * 1024, a);

//stored locally, written content
BufferedOutputStream outputStream=null;
Try {
OutputStream=new BufferedOutputStream (new FileOutputStream (file));
OutputStream. Write (jpegBuffer1. Array (), and 0, al-qeada etValue ());
outputStream.flush();
}
Video recording method of use:
Sdk.NET _DVR_RealPlay
NET_DVR_StopSaveRealData

Excuse me I should how to solve? Because I use in the right way?

thank you
  • Related