forked from anyrtcIO-Community/anyRTC-RTMP-OpenSource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDlgRtmpPush.h
70 lines (62 loc) · 2.05 KB
/
DlgRtmpPush.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* Copyright (c) 2016 The AnyRTC project authors. All Rights Reserved.
*
* Please visit https://www.anyrtc.io for detail.
*
* The GNU General Public License is a free, copyleft license for
* software and other kinds of works.
*
* The licenses for most software and other practical works are designed
* to take away your freedom to share and change the works. By contrast,
* the GNU General Public License is intended to guarantee your freedom to
* share and change all versions of a program--to make sure it remains free
* software for all its users. We, the Free Software Foundation, use the
* GNU General Public License for most of our software; it applies also to
* any other work released this way by its authors. You can apply it to
* your programs, too.
* See the GNU LICENSE file for more info.
*/
#pragma once
#include "Resource.h"
#include "RtmpHoster.h"
#include "DlgVideo.h"
#define WM_MY_PUSH_MESSAGE (WM_USER + 101)
// DlgVideo 对话框
class CLiveWin32Dlg;
class DlgRtmpPush : public CDialog, public RTMPHosterEvent
{
DECLARE_DYNAMIC(DlgRtmpPush)
public:
DlgRtmpPush(); // 标准构造函数
virtual ~DlgRtmpPush();
// 对话框数据
enum { IDD = IDD_DIALOG_PUSH };
protected:
//* For RTMPHosterEvent
virtual void OnRtmpStreamOK() {};
virtual void OnRtmpStreamReconnecting(int times) {};
virtual void OnRtmpStreamStatus(int delayMs, int netBand) {};
virtual void OnRtmpStreamFailed(int code) {};
virtual void OnRtmpStreamClosed() {};
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
virtual void OnOK();
virtual void OnCancel();
public:
afx_msg void OnClose();
virtual BOOL OnInitDialog();
virtual BOOL DestroyWindow();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);
virtual void OnTimer(UINT_PTR nIDEvent);
CEdit m_editUrl;
CButton m_btnRtmp;
CString m_strUrl;
CStatic m_staticCaptrue;
afx_msg void OnBnClickedBtnPush();
protected:
DlgVideo *m_pDlgVideoMain;
RTMPHoster *m_pAVRtmpstreamer;
};