Commit 57fe1b18 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix autovideo setup and fix video command description and output.

parent a4f80780
......@@ -6,19 +6,19 @@ Video::Video() :
"Toggles camera on current call."
"If no call is specified, the current call is taken.")
{
addExample(new DaemonCommandExample("video on 1",
addExample(new DaemonCommandExample("video 1",
"Status: Ok\n\n"
"Camera activated."));
addExample(new DaemonCommandExample("video off 1",
addExample(new DaemonCommandExample("video 1",
"Status: Ok\n\n"
"Camera deactivated."));
addExample(new DaemonCommandExample("video on",
addExample(new DaemonCommandExample("video",
"Status: Error\n\n"
"Reason: No current call available."));
addExample(new DaemonCommandExample("video on 2",
addExample(new DaemonCommandExample("video 2",
"Status: Error\n\n"
"Reason: No call with such id."));
}
......@@ -60,8 +60,8 @@ void Video::exec(Daemon* app, const char* args)
return;
}
app->sendResponse(Response(activate?"Camera deactivated.":
"Camera activated", Response::Ok));
app->sendResponse(Response(activate?"Camera activated.":
"Camera deactivated", Response::Ok));
}
......
......@@ -285,7 +285,7 @@ bool DaemonCommand::matches(const char *name) const {
}
Daemon::Daemon(const char *config_path, const char *factory_config_path, const char *log_file, const char *pipe_name, bool display_video, bool capture_video) :
mLSD(0), mLogFile(NULL), mCallIds(0), mProxyIds(0), mAudioStreamIds(0) {
mLSD(0), mLogFile(NULL), mAutoVideo(0), mCallIds(0), mProxyIds(0), mAudioStreamIds(0) {
ms_mutex_init(&mMutex, NULL);
mServerFd = -1;
mChildFd = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment