diff --git a/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/ChineseSimplified.h b/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/ChineseSimplified.h index b4e681dc..63158423 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/ChineseSimplified.h +++ b/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/ChineseSimplified.h @@ -1,9 +1,9 @@ -// 下列 ifdef 块是创建使从 DLL 导出更简单的 -// 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 CHINESESIMPLIFIED_EXPORTS -// 符号编译的。在使用此 DLL 的 -// 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将 -// CHINESESIMPLIFIED_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的 -// 符号视为是被导出的。 +// 涓嬪垪 ifdef 鍧楁槸鍒涘缓浣夸粠 DLL 瀵煎嚭鏇寸畝鍗曠殑 +// 瀹忕殑鏍囧噯鏂规硶銆傛 DLL 涓殑鎵鏈夋枃浠堕兘鏄敤鍛戒护琛屼笂瀹氫箟鐨 CHINESESIMPLIFIED_EXPORTS +// 绗﹀彿缂栬瘧鐨勩傚湪浣跨敤姝 DLL 鐨 +// 浠讳綍鍏朵粬椤圭洰涓婁笉搴斿畾涔夋绗﹀彿銆傝繖鏍凤紝婧愭枃浠朵腑鍖呭惈姝ゆ枃浠剁殑浠讳綍鍏朵粬椤圭洰閮戒細灏 +// CHINESESIMPLIFIED_API 鍑芥暟瑙嗕负鏄粠 DLL 瀵煎叆鐨勶紝鑰屾 DLL 鍒欏皢鐢ㄦ瀹忓畾涔夌殑 +// 绗﹀彿瑙嗕负鏄瀵煎嚭鐨勩 #ifdef CHINESESIMPLIFIED_EXPORTS #define CHINESESIMPLIFIED_API __declspec(dllexport) #else @@ -39,17 +39,19 @@ extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_BTJOIN; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_CHTIP; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_KEYTIP; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_ENCTYPE; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128XTS; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_ENCTYPE ; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128XTS ; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128GCM; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128CCM; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128CTR; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES128CTR ; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256XTS; extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256GCM; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256CCM; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256CTR; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES_128_ECB; -extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_SM4_128ECB; + +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256CCM ; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES256CTR ; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_SM4_128ECB ; +extern CHINESESIMPLIFIED_API LPCTSTR IDS_CHN_AES_128_ECB ; + extern CHINESESIMPLIFIED_API LPCTSTR IDS_SET_RESOLUTION; extern CHINESESIMPLIFIED_API LPCTSTR IDS_SET_MFR; diff --git a/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/Source.def b/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/Source.def index b80ed295..9aa8576d 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/Source.def +++ b/Group-Video/OpenVideoCall-Windows-MFC/Language/ChineseSimplified/Source.def @@ -29,6 +29,7 @@ IDS_CHN_CHTIP DATA; IDS_CHN_KEYTIP DATA; IDS_CHN_ENCTYPE DATA; +IDS_CHN_ENCTYPE DATA; IDS_CHN_AES128XTS DATA; IDS_CHN_AES128GCM DATA; IDS_CHN_AES128CCM DATA; @@ -37,8 +38,9 @@ IDS_CHN_AES256XTS DATA; IDS_CHN_AES256GCM DATA; IDS_CHN_AES256CCM DATA; IDS_CHN_AES256CTR DATA; +IDS_CHN_SM4_128ECB DATA; IDS_CHN_AES_128_ECB DATA; -IDS_CHN_SM4_128ECB DATA; + IDS_SET_RESOLUTION DATA; IDS_SET_MFR DATA; diff --git a/Group-Video/OpenVideoCall-Windows-MFC/Language/English/English.h b/Group-Video/OpenVideoCall-Windows-MFC/Language/English/English.h index 728bc32c..bcf583db 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/Language/English/English.h +++ b/Group-Video/OpenVideoCall-Windows-MFC/Language/English/English.h @@ -1,9 +1,9 @@ -// 下列 ifdef 块是创建使从 DLL 导出更简单的 -// 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ENGLISH_EXPORTS -// 符号编译的。在使用此 DLL 的 -// 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将 -// ENGLISH_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的 -// 符号视为是被导出的。 +// 涓嬪垪 ifdef 鍧楁槸鍒涘缓浣夸粠 DLL 瀵煎嚭鏇寸畝鍗曠殑 +// 瀹忕殑鏍囧噯鏂规硶銆傛 DLL 涓殑鎵鏈夋枃浠堕兘鏄敤鍛戒护琛屼笂瀹氫箟鐨 ENGLISH_EXPORTS +// 绗﹀彿缂栬瘧鐨勩傚湪浣跨敤姝 DLL 鐨 +// 浠讳綍鍏朵粬椤圭洰涓婁笉搴斿畾涔夋绗﹀彿銆傝繖鏍凤紝婧愭枃浠朵腑鍖呭惈姝ゆ枃浠剁殑浠讳綍鍏朵粬椤圭洰閮戒細灏 +// ENGLISH_API 鍑芥暟瑙嗕负鏄粠 DLL 瀵煎叆鐨勶紝鑰屾 DLL 鍒欏皢鐢ㄦ瀹忓畾涔夌殑 +// 绗﹀彿瑙嗕负鏄瀵煎嚭鐨勩 #ifdef ENGLISH_EXPORTS #define ENGLISH_API __declspec(dllexport) #else @@ -49,8 +49,9 @@ extern ENGLISH_API LPCTSTR IDS_CHN_AES256XTS; extern ENGLISH_API LPCTSTR IDS_CHN_AES256GCM; extern ENGLISH_API LPCTSTR IDS_CHN_AES256CCM; extern ENGLISH_API LPCTSTR IDS_CHN_AES256CTR; -extern ENGLISH_API LPCTSTR IDS_CHN_AES_128_ECB; extern ENGLISH_API LPCTSTR IDS_CHN_SM4_128ECB; +extern ENGLISH_API LPCTSTR IDS_CHN_AES_128_ECB; + extern ENGLISH_API LPCTSTR IDS_SET_RESOLUTION; extern ENGLISH_API LPCTSTR IDS_SET_MFR; diff --git a/Group-Video/OpenVideoCall-Windows-MFC/Language/English/Source.def b/Group-Video/OpenVideoCall-Windows-MFC/Language/English/Source.def index 82d26c22..0e10f5f9 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/Language/English/Source.def +++ b/Group-Video/OpenVideoCall-Windows-MFC/Language/English/Source.def @@ -29,6 +29,7 @@ IDS_CHN_CHTIP DATA; IDS_CHN_KEYTIP DATA; IDS_CHN_ENCTYPE DATA; +IDS_CHN_ENCTYPE DATA; IDS_CHN_AES128XTS DATA; IDS_CHN_AES128GCM DATA; IDS_CHN_AES128CCM DATA; @@ -37,8 +38,10 @@ IDS_CHN_AES256XTS DATA; IDS_CHN_AES256GCM DATA; IDS_CHN_AES256CCM DATA; IDS_CHN_AES256CTR DATA; +IDS_CHN_SM4_128ECB DATA; IDS_CHN_AES_128_ECB DATA; -IDS_CHN_SM4_128ECB DATA; + + IDS_SET_RESOLUTION DATA; IDS_SET_MFR DATA; diff --git a/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/EnterChannelDlg.cpp b/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/EnterChannelDlg.cpp index a51822a6..70bb3395 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/EnterChannelDlg.cpp +++ b/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/EnterChannelDlg.cpp @@ -1,4 +1,4 @@ -// EnterChannelDlg.cpp : 实现文件 +// EnterChannelDlg.cpp : 瀹炵幇鏂囦欢 // #include "stdafx.h" @@ -9,7 +9,7 @@ #include "afxdialogex.h" -// CEnterChannelDlg 对话框 +// CEnterChannelDlg 瀵硅瘽妗 IMPLEMENT_DYNAMIC(CEnterChannelDlg, CDialogEx) @@ -43,7 +43,7 @@ BEGIN_MESSAGE_MAP(CEnterChannelDlg, CDialogEx) END_MESSAGE_MAP() -// CEnterChannelDlg 消息处理程序 +// CEnterChannelDlg 娑堟伅澶勭悊绋嬪簭 BOOL CEnterChannelDlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN){ @@ -63,7 +63,7 @@ BOOL CEnterChannelDlg::OnInitDialog() { CDialogEx::OnInitDialog(); - // TODO: 在此添加额外的初始化 + // TODO: 鍦ㄦ娣诲姞棰濆鐨勫垵濮嬪寲 m_ftEncy.CreateFont(17, 0, 0, 0, FW_BOLD, FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, _T("Arial")); m_ftHead.CreateFont(15, 0, 0, 0, FW_NORMAL, FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, _T("Arial")); m_ftDesc.CreateFont(15, 0, 0, 0, FW_NORMAL, FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, _T("Arial")); @@ -77,7 +77,7 @@ BOOL CEnterChannelDlg::OnInitDialog() InitCtrls(); return TRUE; // return TRUE unless you set the focus to a control - // 异常: OCX 属性页应返回 FALSE + } void CEnterChannelDlg::InitCtrls() @@ -184,7 +184,6 @@ void CEnterChannelDlg::DrawClient(CDC *lpDC) void CEnterChannelDlg::OnBnClickedBtntestChannel() { - // TODO: 在此添加控件通知处理程序代码 m_dlgDevice.ShowWindow(SW_SHOW); m_dlgDevice.CenterWindow(); } @@ -192,10 +191,8 @@ void CEnterChannelDlg::OnBnClickedBtntestChannel() void CEnterChannelDlg::OnBnClickedBtnjoinChannel() { - // TODO: 在此添加控件通知处理程序代码 // CString str = CAgoraObject::GetAgoraObject()->GetCallID(); CString strKey; - m_ctrEncKey.GetWindowText(strKey); if (strKey.GetLength() > 0) { @@ -204,9 +201,9 @@ void CEnterChannelDlg::OnBnClickedBtnjoinChannel() // set encrypt mode config.encryptionMode = ENCRYPTION_MODE(m_cmbEncType.GetCurSel() + 1); // set encrypt key - char szKey[520] = { 0 }; - WideCharToMultiByte(CP_UTF8, 0, strKey.GetBuffer(0), strKey.GetLength(), szKey, 520, NULL, NULL); - config.encryptionKey = szKey; + char szKey[520] = { 0 }; + WideCharToMultiByte(CP_UTF8, 0, strKey.GetBuffer(0), strKey.GetLength(), szKey, 520, NULL, NULL); + config.encryptionKey = szKey; // EnableEncryption of engine. CAgoraObject::GetAgoraObject()->EnableEncryption(true, config); } @@ -216,7 +213,6 @@ void CEnterChannelDlg::OnBnClickedBtnjoinChannel() void CEnterChannelDlg::OnBnClickedBtnsetChannel() { - // TODO: 在此添加控件通知处理程序代码 // SHORT sKeyStat = ::GetAsyncKeyState(VK_CONTROL); GetParent()->SendMessage(WM_GONEXT, 0, 0); diff --git a/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/OpenVideoCall.vcxproj b/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/OpenVideoCall.vcxproj index 017fa254..3aa44f01 100644 --- a/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/OpenVideoCall.vcxproj +++ b/Group-Video/OpenVideoCall-Windows-MFC/OpenVideoCall/OpenVideoCall.vcxproj @@ -106,10 +106,12 @@ Disabled WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true + ..\sdk\include Windows true + ..\sdk\lib false @@ -165,12 +167,14 @@ true WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true + ..\sdk\include Windows true true true + ..\sdk\lib false diff --git a/Group-Video/OpenVideoCall-Windows/openvideocall.cpp b/Group-Video/OpenVideoCall-Windows/openvideocall.cpp index fe979ea6..1ada8e92 100644 --- a/Group-Video/OpenVideoCall-Windows/openvideocall.cpp +++ b/Group-Video/OpenVideoCall-Windows/openvideocall.cpp @@ -116,7 +116,7 @@ void OpenVideoCall::on_btn_join_clicked() // configuration of encrypt EncryptionConfig config; // set encrypt mode - config.encryptionMode = (ENCRYPTION_MODE)(ui->com_encryp->currentIndex()+1); + config.encryptionMode = (ENCRYPTION_MODE)(ui->com_encryp->currentIndex() + 1); // set encrypt key config.encryptionKey = qsEncrypSecret.toUtf8().data(); // EnableEncryption of engine. diff --git a/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/package.json b/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/package.json index 20804a20..754711d4 100644 --- a/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/package.json +++ b/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/package.json @@ -17,7 +17,7 @@ "lint-fix": "eslint --fix src/ " }, "dependencies": { - "agora-rtc-sdk": "^3.0.2", + "agora-rtc-sdk": "^3.2.3", "jquery": "^3.4.1", "materialize-css": "^1.0.0" }, diff --git a/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/src/rtc-client.js b/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/src/rtc-client.js index ccbcf2ce..760aa270 100644 --- a/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/src/rtc-client.js +++ b/One-to-One-Video/Agora-Web-Tutorial-1to1-Webpack/src/rtc-client.js @@ -276,7 +276,7 @@ export default class RTCClient { _updateVideoInfo () { this._localStream && this._localStream.getStats((stats) => { const localStreamProfile = [ - ['Uid: ', this._localStream.getId()].join(''), + ['Uid: ', this._localStream && this._localStream.getId()].join(''), ['SDN access delay: ', stats.accessDelay, 'ms'].join(''), ['Video send: ', stats.videoSendFrameRate, 'fps ', stats.videoSendResolutionWidth + 'x' + stats.videoSendResolutionHeight].join(''), ].join('
')