#include <IPCamera.h>
Inheritance diagram for prip::ViscaIP:
Definition at line 1108 of file IPCamera.h.
Public Member Functions | |
ViscaIP (std::string address, int port, std::string cgiscript="/command/ptzf.cgi", std::string imgpath="/.jpg", std::string streampath="/mjpeg", std::string username="", std::string password="") | |
std::string | getImage (void) |
This pure virtual function should return the raw JPEG Image from the camera. | |
std::string | getNextImage (void) |
get next image from MJPEG stream. | |
virtual void | startMJPEGStream (void) |
opens a connection to the IP Camera and retreives the MJPEG stream. | |
virtual void | stopMJPEGStream (void) |
stops the retreival of the MJPEG stream. | |
Protected Member Functions | |
virtual void | sendCommand (void) |
This function is invoked by every ViscaControl command after termCommand(). | |
Protected Attributes | |
MJPEGStream | mStreamHandler |
Private Attributes | |
std::string | mSite |
std::string | mImgPath |
std::string | mStreamPath |
prip::ViscaIP::ViscaIP | ( | std::string | address, | |
int | port, | |||
std::string | cgiscript = "/command/ptzf.cgi" , |
|||
std::string | imgpath = "/.jpg" , |
|||
std::string | streampath = "/mjpeg" , |
|||
std::string | username = "" , |
|||
std::string | password = "" | |||
) | [inline] |
address | host name or ip address of VISCA capable IP camera | |
port | TCP port of IP camera | |
cgiscript | address of cgi-script - default = /command/ptzf.cgi (which is suitable for SONY IP Cameras) | |
imgpath | path to the page where the image can be downloaded default = /image (which is suitable for SONY IP Cameras) | |
streampath | path to the page where the MJPEG stream can be downloaded default = /mjpeg (which is suitable for SONY IP Cameras) | |
username | if username is supplied, HTTP basic authentication is used | |
password | password for HTTP basic authentication |
Definition at line 1126 of file IPCamera.h.
std::string prip::ViscaIP::getImage | ( | void | ) | [inline, virtual] |
This pure virtual function should return the raw JPEG Image from the camera.
Implements prip::IPCamera.
Definition at line 1132 of file IPCamera.h.
std::string prip::ViscaIP::getNextImage | ( | void | ) | [inline] |
virtual void prip::ViscaIP::sendCommand | ( | void | ) | [inline, protected, virtual] |
This function is invoked by every ViscaControl command after termCommand().
It is supposed to be overwritten by subclasses to actually send the command to the VISCA-able Camera e.g. via serial port or IP connection.
Reimplemented from prip::ViscaControl.
Definition at line 1196 of file IPCamera.h.
virtual void prip::ViscaIP::startMJPEGStream | ( | void | ) | [inline, virtual] |
opens a connection to the IP Camera and retreives the MJPEG stream.
All MJPEGStream functions use the mClientClone
Definition at line 1176 of file IPCamera.h.
virtual void prip::ViscaIP::stopMJPEGStream | ( | void | ) | [inline, virtual] |
stops the retreival of the MJPEG stream.
Definition at line 1186 of file IPCamera.h.
std::string prip::ViscaIP::mImgPath [private] |
Definition at line 1206 of file IPCamera.h.
std::string prip::ViscaIP::mSite [private] |
Definition at line 1205 of file IPCamera.h.
MJPEGStream prip::ViscaIP::mStreamHandler [protected] |
Definition at line 1202 of file IPCamera.h.
std::string prip::ViscaIP::mStreamPath [private] |
Definition at line 1207 of file IPCamera.h.