|
@@ -66,9 +66,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
|
|
|
{
|
|
{
|
|
|
auto recorder = Recorder::DigooRecorder(pHttpClient, settings);
|
|
auto recorder = Recorder::DigooRecorder(pHttpClient, settings);
|
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
|
- reply.content = recorder.Snapshot(pThreadPool);
|
|
|
|
|
|
|
+ reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
|
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
|
- reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
|
|
|
|
|
+ reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
|
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
|
}
|
|
}
|
|
@@ -76,7 +76,7 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
|
|
|
{
|
|
{
|
|
|
auto recorder = Recorder::FoscamRecorder(pHttpClient, settings);
|
|
auto recorder = Recorder::FoscamRecorder(pHttpClient, settings);
|
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
|
- reply.content = recorder.Snapshot(pThreadPool);
|
|
|
|
|
|
|
+ reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
|
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
|
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
@@ -86,9 +86,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
|
|
|
{
|
|
{
|
|
|
auto recorder = Recorder::VStarCamRecorder(pHttpClient, settings);
|
|
auto recorder = Recorder::VStarCamRecorder(pHttpClient, settings);
|
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
|
- reply.content = recorder.Snapshot(pThreadPool);
|
|
|
|
|
|
|
+ reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
|
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
|
- reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
|
|
|
|
|
+ reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
|
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
|
}
|
|
}
|
|
@@ -96,9 +96,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
|
|
|
{
|
|
{
|
|
|
auto recorder = Recorder::WatchBotRecorder(pHttpClient, settings);
|
|
auto recorder = Recorder::WatchBotRecorder(pHttpClient, settings);
|
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
|
- reply.content = recorder.Snapshot(pThreadPool);
|
|
|
|
|
|
|
+ reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
|
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
|
- reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
|
|
|
|
|
+ reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
|
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
|
}
|
|
}
|
|
@@ -106,9 +106,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
|
|
|
{
|
|
{
|
|
|
auto recorder = Recorder::ZModoRecorder(pHttpClient, settings);
|
|
auto recorder = Recorder::ZModoRecorder(pHttpClient, settings);
|
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
if (StringAlgorithm::iequals("Snapshot", action))
|
|
|
- reply.content = recorder.Snapshot(pThreadPool);
|
|
|
|
|
|
|
+ reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
|
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
else if (StringAlgorithm::iequals("MultiSnapshot", action))
|
|
|
- reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
|
|
|
|
|
|
|
+ reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
|
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
else if (StringAlgorithm::iequals("Video", action))
|
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
reply.content = recorder.Video(pThreadPool, ffmpeg);
|
|
|
}
|
|
}
|