Skip to content

Commit e110273

Browse files
committed
feat: fix multi video source case
1 parent c555e75 commit e110273

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

windows/APIExample/APIExample.sln

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28307.852
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.32228.343
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "APIExample", "APIExample\APIExample.vcxproj", "{DB16CA2F-3910-4449-A5BD-6A602B33BE0F}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A} = {2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}
9+
EndProjectSection
710
EndProject
811
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProcessScreenShare", "APIExample\Advanced\MultiVideoSource\ProcessScreenShare\ProcessScreenShare.vcxproj", "{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}"
912
EndProject
@@ -29,8 +32,8 @@ Global
2932
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Debug|x64.Build.0 = Debug|x64
3033
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|Win32.ActiveCfg = Release|Win32
3134
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|Win32.Build.0 = Release|Win32
32-
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|x64.ActiveCfg = Debug|x64
33-
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|x64.Build.0 = Debug|x64
35+
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|x64.ActiveCfg = Release|x64
36+
{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}.Release|x64.Build.0 = Release|x64
3437
EndGlobalSection
3538
GlobalSection(SolutionProperties) = preSolution
3639
HideSolutionNode = FALSE

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ int CAgoraMutilVideoSourceDlg::StartMultiVideoSource()
284284
dwProcessId = getProcessID("ProcessScreenShare.exe");
285285
if (0 >= dwProcessId)
286286
dwProcessId = openProcess("ProcessScreenShare.exe", m_strChannel + " " + GET_APP_ID);
287+
288+
289+
wchar_t buf[256];
290+
FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
291+
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
292+
buf, (sizeof(buf) / sizeof(wchar_t)), NULL);
293+
287294
m_lstInfo.InsertString(m_lstInfo.GetCount() - 1, _T("start porcess success"));
288295

289296
m_HandleData.process_id = (unsigned long)dwProcessId;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<ProjectGuid>{2B345C3C-4BEA-4DA3-B754-43F9AD219D4A}</ProjectGuid>
2323
<RootNamespace>ProcessScreenShare</RootNamespace>
2424
<Keyword>MFCProj</Keyword>
25-
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
25+
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
2626
</PropertyGroup>
2727
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2828
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@@ -35,7 +35,7 @@
3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
3636
<ConfigurationType>Application</ConfigurationType>
3737
<UseDebugLibraries>true</UseDebugLibraries>
38-
<PlatformToolset>v141</PlatformToolset>
38+
<PlatformToolset>v142</PlatformToolset>
3939
<CharacterSet>Unicode</CharacterSet>
4040
<UseOfMfc>Dynamic</UseOfMfc>
4141
</PropertyGroup>
@@ -50,7 +50,7 @@
5050
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5151
<ConfigurationType>Application</ConfigurationType>
5252
<UseDebugLibraries>false</UseDebugLibraries>
53-
<PlatformToolset>v141</PlatformToolset>
53+
<PlatformToolset>v142</PlatformToolset>
5454
<WholeProgramOptimization>true</WholeProgramOptimization>
5555
<CharacterSet>Unicode</CharacterSet>
5656
<UseOfMfc>Dynamic</UseOfMfc>

0 commit comments

Comments
 (0)