Added update option of VVDec Web Player

This commit is contained in:
Martin Eesmaa 2022-03-12 14:03:32 +11:00 committed by GitHub
parent 4ae407986a
commit e28e84fefd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -42,7 +42,7 @@ echo 4. Exit
echo 5. Install/Test path environment echo 5. Install/Test path environment
echo 6. Install VLC Media Player (o266player, Windows x64) echo 6. Install VLC Media Player (o266player, Windows x64)
echo 7. Install quickly through Anaconda for ffmpeg (Windows) echo 7. Install quickly through Anaconda for ffmpeg (Windows)
echo 8. Install VVdec Web Player echo 8. Install/Update VVdec Web Player
echo 9. Decompress WindowsVVC.7z (Before you use new VVCEasy version!!!) echo 9. Decompress WindowsVVC.7z (Before you use new VVCEasy version!!!)
echo 10. Install vvDecPlayer from BitMovin echo 10. Install vvDecPlayer from BitMovin
set /p VVCSTART=Number: set /p VVCSTART=Number:
@ -364,12 +364,15 @@ echo By installing, you will have to agree to download VVDec Web Player from Fra
echo See the code of VVDEC Web Player: https://github.com/fraunhoferhhi/vvdecWebPlayer echo See the code of VVDEC Web Player: https://github.com/fraunhoferhhi/vvdecWebPlayer
echo When you agree to install, it will clone of VVDec Web Player repository using git. After git, we will copy from VVDECWEBINSTALL files into vvdecWebPlayer/bin folder. echo When you agree to install, it will clone of VVDec Web Player repository using git. After git, we will copy from VVDECWEBINSTALL files into vvdecWebPlayer/bin folder.
echo After all of that, we will run Python to start web server of your localhost port 8000. echo After all of that, we will run Python to start web server of your localhost port 8000.
echo If you already have installed of VVDec Web Player, you can type "U" to update files of VVDec Web Player.
echo Would you like to install of VVDEC Web Player? echo Would you like to install of VVDEC Web Player?
set /p okletsdoit=Answer: set /p okletsdoit=Answer:
if %okletsdoit% == Y goto installnowplayer if %okletsdoit% == Y goto installnowplayer
if %okletsdoit% == N goto start if %okletsdoit% == N goto start
if %okletsdoit% == y goto installnowplayer if %okletsdoit% == y goto installnowplayer
if %okletsdoit% == n goto start if %okletsdoit% == n goto start
if %okletsdoit% == U goto updatevvdecwebplayer
if %okletsdoit% == u goto updatevvdecwebplayer
:installnowplayer :installnowplayer
cls cls
@ -391,6 +394,18 @@ echo Press any key to go back menu.
timeout 10 timeout 10
goto start goto start
:updatevvdecwebplayer
cls
title UPDATING VVDEC WEB PLAYER...
echo UPDATING VVDEC WEB PLAYER...
cd vvdecWebPlayer
git pull
cd ../
echo Your up to date is now latest.
echo Returning to main menu...
timeout 3
goto start
:decompresswin7z :decompresswin7z
cls cls
title WindowsVVC.7z (decompressing) title WindowsVVC.7z (decompressing)