Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions windows/APIExample/installCheck.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd /d %~dp0

powershell.exe -command ^
"& {set-executionpolicy Remotesigned -Scope Process; ./'installCheck.ps1'}"
28 changes: 28 additions & 0 deletions windows/APIExample/installCheck.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$ThirdPartysrc = 'https://agora-adc-artifacts.oss-cn-beijing.aliyuncs.com/libs/ThirdParty.zip'
$ThirdPartydes = 'ThirdParty.zip'
$MediaPlayerSDK = 'https://download.agora.io/sdk/release/Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537.zip'
$MediaPlayerDes = 'MediaPlayerPartSave.zip'


if (-not (Test-Path ThirdParty)){
echo "download $ThirdPartydes"
mkdir ThirdParty
Invoke-WebRequest -uri $ThirdPartySrc -OutFile $ThirdPartyDes -TimeoutSec 10;
Unblock-File $ThirdPartyDes
Expand-Archive -Path $ThirdPartyDes -DestinationPath 'ThirdParty' -Force
Remove-Item $ThirdPartyDes -Recurse
}

if (-not (Test-Path MediaPlayerPart)){
echo "download $MediaPlayerSDK"
mkdir MediaPlayerPart
Invoke-WebRequest -uri $MediaPlayerSDK -OutFile $MediaPlayerDes -TimeoutSec 10;
Unblock-File $MediaPlayerDes
Expand-Archive -Path $MediaPlayerDes -DestinationPath . -Force
Move-Item Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537\sdk\* MediaPlayerPart
Remove-Item $MediaPlayerDes -Recurse
Remove-Item Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537 -Recurse
}