-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathin_meeting_controller.hh
36 lines (28 loc) · 1.08 KB
/
in_meeting_controller.hh
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
#ifndef IN_MEETING_CONTROLLER_HH
#define IN_MEETING_CONTROLLER_HH
#include <QString>
#include "meeting_model.hh"
#include "in_meeting_view.hh"
class VideoViewController : public StreamPullerListener {
public:
VideoViewController(std::shared_ptr<StreamPuller> puller, VideoView* view);
~VideoViewController();
void OnPullFrame(const std::string& user_id, MediaType media_type, std::shared_ptr<AVFRAME> frame) override;
private:
VideoView* view_ = nullptr;
std::shared_ptr<StreamPuller> puller_;
};
class InMeetingController : public MeetingModelDelegate {
public:
InMeetingController(InMeetingView* view);
~InMeetingController();
void HandleVideoClick();
void HandleMeetingInfomationClick();
void HandleExitClick();
void PushMediaComplete(MediaType media_type, PushMediaResult result, const std::string& msg) override;
void OnUserStatusUpdate(const std::vector<UserStatus>& user_status) override;
void LeaveMeetingComplete(LeaveMeetingResult result, const std::string& msg) override;
private:
InMeetingView* view_ = nullptr;
};
#endif // IN_MEETING_CONTROLLER_HH