Skip to content

Commit

Permalink
port to SCRCPY v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontesque committed Apr 6, 2023
1 parent 87fcf5f commit 0b56494
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 6 deletions.
Binary file modified resources/scrcpy/SDL2.dll
Binary file not shown.
Binary file modified resources/scrcpy/adb.exe
Binary file not shown.
Binary file added resources/scrcpy/avcodec-60.dll
Binary file not shown.
Binary file added resources/scrcpy/avformat-60.dll
Binary file not shown.
Binary file added resources/scrcpy/avutil-58.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions resources/scrcpy/scrcpy-console.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
scrcpy.exe %*
:: if the exit code is >= 1, then pause
if errorlevel 1 pause
7 changes: 7 additions & 0 deletions resources/scrcpy/scrcpy-noconsole.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
strCommand = "cmd /c scrcpy.exe"

For Each Arg In WScript.Arguments
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next

CreateObject("Wscript.Shell").Run strCommand, 0, false
Binary file modified resources/scrcpy/scrcpy-server
Binary file not shown.
Binary file modified resources/scrcpy/scrcpy.exe
Binary file not shown.
Binary file modified resources/scrcpy/swresample-4.dll
Binary file not shown.
Binary file added resources/scrcpy/zlib1.dll
Binary file not shown.
12 changes: 7 additions & 5 deletions src/renderer/components/scrcpy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


<!-- Sliders -->
<div>Bitrate {{ bitrate }}M</div>
<div>Video Bitrate {{ bitrate }}M</div>
<v-slider v-model="bitrate" max="64" min="1" hint="A higher bitrate creates a clearer image but may increase lag" dense persistent-hint />
<!-- End Sliders -->

Expand Down Expand Up @@ -81,7 +81,7 @@
<v-divider />
<v-card-actions>
<v-spacer />
<v-btn class="primaryButton" text @click="dialog = false">Close</v-btn>
<v-btn rounded class="primaryButton" text @click="dialog = false">Close</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
Expand All @@ -104,9 +104,11 @@ export default {
}
//console.log("scrcpy"+flags);
this.$execute(`scrcpy --bit-rate ${this.bitrate}M`+flags)
.catch((err) => {
if (typeof err != "object" && err.startsWith("INFO:")) return; // Catch information outputs
this.$execute(`scrcpy --video-bit-rate ${this.bitrate}M`+flags)
.catch(err => {
//if (typeof err != "object" && err.startsWith("INFO:")) return; // Catch information outputs
if (err.startsWith("WARN:")) return; // Catch default close
console.log(err)
this.dialog = true;
this.dialogText = err;
})
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/components/scrcpyPlusInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
<v-icon>mdi-script-text</v-icon>
SCRCPY+ Changelog
</v-btn>

<!--
<v-btn rounded to="/settings" class="primaryButton">
<v-icon>mdi-cog</v-icon>
Settings
</v-btn>
-->
</v-card-actions>
</section>

Expand Down
2 changes: 2 additions & 0 deletions src/renderer/pages/changelog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<li>Fix MacOS window options displaying over title bar</li>
<li>Rework "Device" section</li>
<li>Remove "ADB Quick Actions" section</li>
<li>Port to SCRCPY v2</li>
<li>Due to SCRCPY v2, audio is now supported</li>
</ul>
</section>

Expand Down

0 comments on commit 0b56494

Please sign in to comment.