|
|
@ -1667,7 +1667,6 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Hang Yu
|
|
|
|
// Hang Yu
|
|
|
|
strcpy(netPhotoInfo.url, "/cgi-bin/snapshot.cgi");
|
|
|
|
strcpy(netPhotoInfo.url, "/cgi-bin/snapshot.cgi");
|
|
|
|
vendorCtrl->EnableOsd(false, localPhotoInfo.channel);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (localPhotoInfo.vendor == 3)
|
|
|
|
else if (localPhotoInfo.vendor == 3)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1684,6 +1683,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
// http://192.168.1.101/Snapshot/1/2/RemoteImageCaptureV2?ImageFormat=jpg
|
|
|
|
// http://192.168.1.101/Snapshot/1/2/RemoteImageCaptureV2?ImageFormat=jpg
|
|
|
|
// http://192.168.1.101/Snapshot/1/1/RemoteImageCaptureV2?ImageFormat=jpg
|
|
|
|
// http://192.168.1.101/Snapshot/1/1/RemoteImageCaptureV2?ImageFormat=jpg
|
|
|
|
snprintf(netPhotoInfo.url, sizeof(netPhotoInfo.url), "/Snapshot/%u/1/RemoteImageCaptureV2?ImageFormat=jpg", (uint32_t)localPhotoInfo.cameraId);
|
|
|
|
snprintf(netPhotoInfo.url, sizeof(netPhotoInfo.url), "/Snapshot/%u/1/RemoteImageCaptureV2?ImageFormat=jpg", (uint32_t)localPhotoInfo.cameraId);
|
|
|
|
|
|
|
|
vendorCtrl->EnableOsd(false, localPhotoInfo.cameraId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1866,7 +1866,11 @@ bool CPhoneDevice::TakeVideoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(localPhotoInfo.vendor == 5)
|
|
|
|
if(localPhotoInfo.vendor == 5)
|
|
|
|
vendorCtrl->SetOsd(localPhotoInfo.channel, osds[0].text, 0);
|
|
|
|
{
|
|
|
|
|
|
|
|
vendorCtrl->SetOsd(localPhotoInfo.cameraId, osds[0].text, 0);
|
|
|
|
|
|
|
|
vendorCtrl->SetResolution(localPhotoInfo.cameraId, 1, localPhotoInfo.width, localPhotoInfo.height);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string streamingUrl = vendorCtrl->GetStreamingUrl(localPhotoInfo.cameraId);
|
|
|
|
std::string streamingUrl = vendorCtrl->GetStreamingUrl(localPhotoInfo.cameraId);
|
|
|
|
|
|
|
|
|
|
|
|