Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #219 from AgoraIO/dev/3.1.0
Browse files Browse the repository at this point in the history
Dev/3.1.0
  • Loading branch information
plutoless authored Aug 26, 2020
2 parents f046239 + d8f7d33 commit dd4c18b
Show file tree
Hide file tree
Showing 24 changed files with 291 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import io.agora.rtc.mediaio.IVideoFrameConsumer;
import io.agora.rtc.mediaio.IVideoSource;
import io.agora.rtc.mediaio.MediaIO;
import io.agora.rtc.mediaio.MediaIO.ContentHint;
import io.agora.rtc.mediaio.MediaIO.CaptureType;

public class ExternalVideoInputManager implements IVideoSource {
private static final String TAG = ExternalVideoInputManager.class.getSimpleName();
Expand Down Expand Up @@ -125,6 +127,16 @@ public int getBufferType() {
return MediaIO.BufferType.TEXTURE.intValue();
}

@Override
public int getCaptureType() {
return CaptureType.UNKNOWN.intValue();
}

@Override
public int getContentHint() {
return ContentHint.NONE.intValue();
}

private class ExternalVideoInputThread extends Thread {
private final String TAG = ExternalVideoInputThread.class.getSimpleName();
private final int DEFAULT_WAIT_TIME = 1;
Expand Down
4 changes: 3 additions & 1 deletion Windows/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,6 @@ ASALocalRun/
*.exe
*.out
*.app
English.log
English.log
libs/
sdk/
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
<PostBuildEvent>
<Command>if exist $(SolutionDir)sdk (copy $(SolutionDir)sdk\dll\*.dll $(SolutionDir)$(Configuration)\)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down Expand Up @@ -173,6 +176,9 @@
<PostBuildEvent>
<Command>if exist $(SolutionDir)sdk (copy $(SolutionDir)sdk\dll\*.dll $(SolutionDir)$(Configuration)\)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -84,6 +85,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
51 changes: 51 additions & 0 deletions Windows/Agora-Screen-Sharing-Windows/prebuild.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
set sdkversion=small

set Machine=%~1
set absolute_path=%~2
cd %absolute_path%

if %sdkversion% == origin ( exit )


if %sdkversion% == small (
set sdkinclude=libs\include
set sdkdll=libs\x86
set sdklib=libs\x86
if %Machine% == x64 (
set sdkdll=libs\x86_64
set sdklib=libs\x86_64
)
)

if not exist sdk (
mkdir sdk
)

if exist sdk (
pushd sdk
if not exist dll (
mkdir dll
)

if not exist lib (
mkdir lib
)
if not exist include (
mkdir include
)
popd
)

if %sdkversion% == small (
if exist %sdkinclude% (
copy %sdkinclude%\*.h sdk\include
)

if exist %sdklib% (
copy %sdklib%\*.lib sdk\lib /y
)
if exist %sdkdll% (
copy %sdkdll%\*.dll sdk\dll /y
)
)
pause
10 changes: 10 additions & 0 deletions Windows/Agora-String-Account-Windows/OpenLive/OpenLive.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -121,6 +123,9 @@
<PostBuildEvent>
<Command>copy ..\sdk\dll\*.dll ..\Debug\</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down Expand Up @@ -153,6 +158,8 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -170,6 +177,9 @@
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand Down
51 changes: 51 additions & 0 deletions Windows/Agora-String-Account-Windows/prebuild.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
set sdkversion=small

set Machine=%~1
set absolute_path=%~2
cd %absolute_path%

if %sdkversion% == origin ( exit )


if %sdkversion% == small (
set sdkinclude=libs\include
set sdkdll=libs\x86
set sdklib=libs\x86
if %Machine% == x64 (
set sdkdll=libs\x86_64
set sdklib=libs\x86_64
)
)

if not exist sdk (
mkdir sdk
)

if exist sdk (
pushd sdk
if not exist dll (
mkdir dll
)

if not exist lib (
mkdir lib
)
if not exist include (
mkdir include
)
popd
)

if %sdkversion% == small (
if exist %sdkinclude% (
copy %sdkinclude%\*.h sdk\include
)

if exist %sdklib% (
copy %sdklib%\*.lib sdk\lib /y
)
if exist %sdkdll% (
copy %sdkdll%\*.dll sdk\dll /y
)
)
pause
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<PostBuildEvent>
<Command>copy ..\sdk\dll\*.dll ..\Debug\</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -88,6 +91,8 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -105,6 +110,9 @@
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<PreBuildEvent>
<Command>$(SolutionDir)\prebuild.bat $(PlatformTarget) $(SolutionDir)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
Expand Down
51 changes: 51 additions & 0 deletions Windows/LargeGroupVideoChat-Windows/prebuild.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
set sdkversion=small

set Machine=%~1
set absolute_path=%~2
cd %absolute_path%

if %sdkversion% == origin ( exit )


if %sdkversion% == small (
set sdkinclude=libs\include
set sdkdll=libs\x86
set sdklib=libs\x86
if %Machine% == x64 (
set sdkdll=libs\x86_64
set sdklib=libs\x86_64
)
)

if not exist sdk (
mkdir sdk
)

if exist sdk (
pushd sdk
if not exist dll (
mkdir dll
)

if not exist lib (
mkdir lib
)
if not exist include (
mkdir include
)
popd
)

if %sdkversion% == small (
if exist %sdkinclude% (
copy %sdkinclude%\*.h sdk\include
)

if exist %sdklib% (
copy %sdklib%\*.lib sdk\lib /y
)
if exist %sdkdll% (
copy %sdkdll%\*.dll sdk\dll /y
)
)
pause
8 changes: 4 additions & 4 deletions Windows/cicd/templates/build-Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
scheme: ''
sdkurl: ''
solutionName: ''
sdkunzipPath: ''
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_FULL'
Machine: ''
jobs:
- job: ${{ parameters.displayName }}Build
Expand All @@ -22,7 +22,7 @@ jobs:
solution: '${{ parameters.workingDirectory }}/${{ parameters.solutionName }}'
buildPlatform: ${{ parameters.Machine }}
buildConfiguration: 'Release'

sdkpathname: 'libs'
steps:
- script: echo "${{ parameters.sdkurl }}"
- powershell: Windows/cicd/script/downloadsdk.ps1 "${{ parameters.sdkurl }}"
Expand All @@ -34,8 +34,8 @@ jobs:

- task: CopyFiles@2
inputs:
sourceFolder: ${{ parameters.sdkunzipPath }}/sdk
targetFolder: ${{ parameters.workingDirectory }}/sdk
sourceFolder: ${{ parameters.sdkunzipPath }}/$(sdkpathname)
targetFolder: ${{ parameters.workingDirectory }}/$(sdkpathname)
- script: cd ${{ parameters.workingDirectory }} && ls

- task: VSBuild@1
Expand Down
16 changes: 8 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

trigger:
#- master
#- dev/*
- 3.0.0
- dev/*
# - 3.0.0

pool:
vmImage: 'macos-latest'

variables:
iOSRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_iOS_v3_0_1_FULL.zip?_ga=2.39937186.1429354637.1591107319-5559409.1503304822'
MacRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_Mac_v3_0_1_FULL.zip?_ga=2.49505318.1429354637.1591107319-5559409.1503304822'
WindowsRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows(x86)_v3_0_0_FULL.zip'
iOSRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_iOS_v3_1_0_FULL.zip?_ga=2.145291316.1493357375.1597372715-269570672.1596526126'
MacRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_Mac_v3_1_0_FULL.zip?_ga=2.145291316.1493357375.1597372715-269570672.1596526126'
WindowsRTCSDK: 'https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows_v3_1_0_FULL.zip?_ga=2.145291316.1493357375.1597372715-269570672.1596526126'
ConnectionName: sbd021
RepoName: sbd021

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
scheme: 'Agora-String-Account-Windows'
sdkurl: $(WindowsRTCSDK)
solutionName: 'OpenLive.sln'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_v3.0.0_FULL'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_FULL'

- template: Windows/cicd/templates/build-Windows.yml
parameters:
Expand All @@ -96,7 +96,7 @@ jobs:
scheme: 'LargeGroupVideoChat-Windowss'
sdkurl: $(WindowsRTCSDK)
solutionName: 'AgoraOpenLive.sln'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_v3.0.0_FULL'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_FULL'

- template: Windows/cicd/templates/build-Windows.yml
parameters:
Expand All @@ -105,7 +105,7 @@ jobs:
scheme: 'Agora-Screen-Sharing-Windows'
sdkurl: $(WindowsRTCSDK)
solutionName: 'OpenLive.sln'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_v3.0.0_FULL'
sdkunzipPath: 'AgoraSDK/Agora_Native_SDK_for_Windows_FULL'

#hook demo
- template: Windows/cicd/templates/build-Windows-Hook.yml
Expand Down
Loading

0 comments on commit dd4c18b

Please sign in to comment.