Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ConnectPlayer.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CONNECTPLAYER_H
4#define CONNECTPLAYER_H
5
6#pragma once
7
8#include <QtGlobal>
9
10#include <QMediaCaptureSession>
11#include <QMediaPlayer>
12#include <QVideoSink>
13
14#include <QAudioOutput>
15#include <QAudioInput>
16#include <QCamera>
17
18#include "ConnectDesktop.h"
19#include "ConnecterPlayer.h"
20
22{
23 Q_OBJECT
24
25public:
26 explicit CConnectPlayer(CConnecterPlayer* pConnecter);
27 virtual ~CConnectPlayer();
28
29public Q_SLOTS:
30 virtual void slotStart();
31 virtual void slotStop();
32#if HAVE_QT6_RECORD
33 virtual void slotRecord(bool bRecord) override;
34#endif
35
36 // CConnectDesktop interface
37 virtual void slotClipBoardChanged() override;
38
39 // CConnect interface
40protected:
41 virtual OnInitReturnValue OnInit() override;
42 virtual int OnClean() override;
43
44private Q_SLOTS:
45 void slotVideoFrameChanged(const QVideoFrame &frame);
46 void slotEnableAudioInput(bool bEnable);
47 void slotEnableAudioOutput(bool bEnable);
48 void slotPositionChanged(qint64 pos);
49 void slotDurationChanged(qint64 duration);
50Q_SIGNALS:
51 void sigPositionChanged(qint64 pos, qint64 duration);
52
53private:
54 QRect m_Video;
55 QCamera* m_pCamera;
56 QMediaPlayer m_Player;
57 QVideoSink m_VideoSink;
58 bool m_bScreenShot;
59
60 QAudioOutput m_AudioOutput;
61 QAudioInput m_AudioInput;
62
63 CParameterPlayer* m_pParameters;
64 qint64 m_nPosition;
65 qint64 m_nDuration;
66
67 QString m_szRecordFile;
68};
69
70#endif // CONNECTPLAYER_H
Remote desktop connect interface.
virtual int OnClean() override
Clean.
virtual OnInitReturnValue OnInit() override
Specific plug-in realizes connection initialization.