Skip to content

Commit 483bd89

Browse files
author
zhaoyongqiang
committed
Merge branch 'dev/3.7.1' of github.com:AgoraIO/API-Examples into dev/3.7.1
2 parents dfe5387 + fa1f327 commit 483bd89

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

windows/APIExample/APIExample/APIExample.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3030
<ConfigurationType>Application</ConfigurationType>
3131
<UseDebugLibraries>true</UseDebugLibraries>
32-
<PlatformToolset>v142</PlatformToolset>
32+
<PlatformToolset>v141</PlatformToolset>
3333
<CharacterSet>Unicode</CharacterSet>
3434
<UseOfMfc>Dynamic</UseOfMfc>
3535
</PropertyGroup>
3636
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3737
<ConfigurationType>Application</ConfigurationType>
3838
<UseDebugLibraries>false</UseDebugLibraries>
39-
<PlatformToolset>v142</PlatformToolset>
39+
<PlatformToolset>v141</PlatformToolset>
4040
<WholeProgramOptimization>true</WholeProgramOptimization>
4141
<CharacterSet>Unicode</CharacterSet>
4242
<UseOfMfc>Dynamic</UseOfMfc>
@@ -51,7 +51,7 @@
5151
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5252
<ConfigurationType>Application</ConfigurationType>
5353
<UseDebugLibraries>false</UseDebugLibraries>
54-
<PlatformToolset>v142</PlatformToolset>
54+
<PlatformToolset>v141</PlatformToolset>
5555
<WholeProgramOptimization>true</WholeProgramOptimization>
5656
<CharacterSet>Unicode</CharacterSet>
5757
<UseOfMfc>Dynamic</UseOfMfc>

windows/APIExample/APIExample/Advanced/MultiVideoSource/CAgoraMutilVideoSourceDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void CAgoraMutilVideoSourceDlg::StartShare()
371371
HWND hMarkWnd = NULL;
372372

373373
if (m_cmbShare.GetCurSel() > 0) {
374-
hMarkWnd = m_listWnd.GetAt(m_listWnd.FindIndex(m_cmbShare.GetCurSel() + 1));
374+
hMarkWnd = m_listWnd.GetAt(m_listWnd.FindIndex(m_cmbShare.GetCurSel() - 1));
375375
}
376376

377377
if (!hMarkWnd || ::IsWindow(hMarkWnd)) {

windows/APIExample/APIExample/Advanced/MultiVideoSource/ProcessScreenShare/ProcessScreenShare.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,29 @@
2828
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
2929
<ConfigurationType>Application</ConfigurationType>
3030
<UseDebugLibraries>true</UseDebugLibraries>
31-
<PlatformToolset>v142</PlatformToolset>
31+
<PlatformToolset>v141</PlatformToolset>
3232
<CharacterSet>Unicode</CharacterSet>
3333
<UseOfMfc>Dynamic</UseOfMfc>
3434
</PropertyGroup>
3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
3636
<ConfigurationType>Application</ConfigurationType>
3737
<UseDebugLibraries>true</UseDebugLibraries>
38-
<PlatformToolset>v142</PlatformToolset>
38+
<PlatformToolset>v141</PlatformToolset>
3939
<CharacterSet>Unicode</CharacterSet>
4040
<UseOfMfc>Dynamic</UseOfMfc>
4141
</PropertyGroup>
4242
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4343
<ConfigurationType>Application</ConfigurationType>
4444
<UseDebugLibraries>false</UseDebugLibraries>
45-
<PlatformToolset>v142</PlatformToolset>
45+
<PlatformToolset>v141</PlatformToolset>
4646
<WholeProgramOptimization>true</WholeProgramOptimization>
4747
<CharacterSet>Unicode</CharacterSet>
4848
<UseOfMfc>Dynamic</UseOfMfc>
4949
</PropertyGroup>
5050
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5151
<ConfigurationType>Application</ConfigurationType>
5252
<UseDebugLibraries>false</UseDebugLibraries>
53-
<PlatformToolset>v142</PlatformToolset>
53+
<PlatformToolset>v141</PlatformToolset>
5454
<WholeProgramOptimization>true</WholeProgramOptimization>
5555
<CharacterSet>Unicode</CharacterSet>
5656
<UseOfMfc>Dynamic</UseOfMfc>

windows/APIExample/APIExample/Advanced/MultiVideoSource/ProcessScreenShare/ProcessScreenShareDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ BOOL CProcessScreenShareDlg::EnableScreenCapture(HWND hWnd, int nCapFPS, LPCRECT
245245
::GetWindowRect(hWnd, &rc);
246246
capParam.dimensions.width = rc.right - rc.left;
247247
capParam.dimensions.height = rc.bottom - rc.top;
248-
rcCap = { rc.left, rc.top, rc.right, rc.bottom };
248+
rcCap = { 0 ,0,0,0 };
249249
ret = m_lpRtcEngine->startScreenCaptureByWindowId(hWnd, rcCap, capParam);
250250
}
251251
else {

windows/APIExample/APIExample/Advanced/VideoMetadata/CAgoraMetaDataDlg.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,12 @@ LRESULT CAgoraMetaDataDlg::OnEIDUserJoined(WPARAM wParam, LPARAM lParam)
379379
strInfo.Format(_T("%u joined"), wParam);
380380
m_lstInfo.InsertString(m_lstInfo.GetCount(), strInfo);
381381

382-
/* VideoCanvas canvas;
383-
canvas.uid = wParam;
384-
canvas.view = m_remoteVideoWnd.GetSafeHwnd();
385-
canvas.renderMode = RENDER_MODE_FIT;
386-
m_rtcEngine->setupRemoteVideo(canvas);*/
387-
return 0;
382+
VideoCanvas canvas;
383+
canvas.uid = wParam;
384+
canvas.view = m_remoteVideoWnd.GetSafeHwnd();
385+
canvas.renderMode = RENDER_MODE_FIT;
386+
m_rtcEngine->setupRemoteVideo(canvas);
387+
return 0;
388388
}
389389

390390
//EID_USER_OFFLINE message window handler.

0 commit comments

Comments
 (0)