-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrtspcam.h
More file actions
39 lines (31 loc) · 871 Bytes
/
rtspcam.h
File metadata and controls
39 lines (31 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef RTSPCAM_H
#define RTSPCAM_H
#include <string>
#include <map>
#include "os.h"
#include "webcast.h"
#include "acamera.h"
#include "pipefile.h"
class rtpudpcs;
class rtspcam : public osthread, public acamera
{
public:
rtspcam(const dims_t& wh,const std::string& name, const std::string& loc, const Cbdler::Node& n);
virtual ~rtspcam();
virtual void thread_main();
virtual size_t get_frame(imglayout_t& i);
virtual bool spin();
virtual bool init(const dims_t&);
private:
#ifdef WITH_AVLIB_RTSP
void _avlib_rtsp();
#endif
private:
std::string _url,_user,_uri;
long _seq = 0;
unsigned long _curl_auth = 0;
mutexx _mut;
bool _ontcp = false;
pipiefile* _pipa = nullptr; //("/tmp/movie.mov");
};
#endif // RTSPCAM_H