Skip to content

Commit

Permalink
Add option rotate and width to IPCam class
Browse files Browse the repository at this point in the history
  • Loading branch information
naguirre committed Apr 16, 2023
1 parent c1a9840 commit 7ad2ebb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/calaos_server/IPCam/IPCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ IPCam::IPCam(Params &p):
set_param("gui_type", "camera");
set_param("visible", "false");

ioDoc->paramAdd("width", _("Width of the image, if this parameter is set, video will be resized to fit the given width. Let parameter empty to keep the original size."), IODoc::TYPE_INT, false, "");
ioDoc->paramAdd("rotate", _("Rotate the image. Set a value between. The value is in degrees. Example : -90 for Counter Clock Wise rotation, 90 for Clock Wise rotationCW."), IODoc::TYPE_INT, false, "");

//Add again to cache, because gui_type has changed
//Special case for Camera
ListeRoom::Instance().addIOHash(this);
Expand Down

0 comments on commit 7ad2ebb

Please sign in to comment.