blob: 629a960eee3d559141b541207ddb6cf0e66d9141 (
plain)
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
|
#ifndef VIDWIN_H
#define VIDWIN_H
#include <pjsua.h>
#include <QWidget>
class VidWin : public QWidget
{
Q_OBJECT
public:
// hwnd Handle of the video rendering window.
VidWin(pjmedia_vid_dev_hwnd *hwnd = NULL,
QWidget* parent = 0,
Qt::WindowFlags f = 0);
virtual ~VidWin();
protected:
void resizeEvent(QResizeEvent *e);
private:
pjmedia_vid_dev_hwnd hwnd;
//pjmedia_vid_dev_hwnd old_parent_hwnd;
pj_timer_entry timer_entry;
static void timer_cb(pj_timer_heap_t *timer_heap,
struct pj_timer_entry *entry);
void embed();
void resize();
};
#endif
|