Skip to content

Commit 4a52792

Browse files
committed
fix(scrcpy): skip default value in 1.21 option serialization
workaround Genymobile/scrcpy#2841
1 parent 6c8d591 commit 4a52792

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/demo/pages/scrcpy.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ class ScrcpyPageState {
444444
client.onSizeChanged(action((size) => {
445445
const { croppedWidth, croppedHeight, } = size;
446446

447+
this.log.push(`[client] Video size changed: ${croppedWidth}x${croppedHeight}`);
448+
447449
this.width = croppedWidth;
448450
this.height = croppedHeight;
449451

@@ -472,8 +474,8 @@ class ScrcpyPageState {
472474
});
473475

474476
runInAction(() => {
475-
this.log.push(`Server version: ${SCRCPY_SERVER_VERSION}`);
476-
this.log.push(`Server arguments: ${options.formatServerArguments()}`);
477+
this.log.push(`[client] Server version: ${SCRCPY_SERVER_VERSION}`);
478+
this.log.push(`[client] Server arguments: ${options.formatServerArguments().join(' ')}`);
477479
});
478480

479481
await client.start(

0 commit comments

Comments
 (0)