Skip to content

Commit

Permalink
feat(scrcpy): support server version 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Jun 22, 2023
1 parent 0092822 commit f52ac7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"postinstall": "fetch-scrcpy-server 2.0 && node scripts/manifest.mjs",
"postinstall": "fetch-scrcpy-server 2.1 && node scripts/manifest.mjs",
"dev": "next dev",
"build": "next build",
"start": "next start",
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/components/scrcpy/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class ScrcpyPageState {

RECORD_STATE.recorder = new MatroskaMuxingRecorder();

client.videoStream.then(({ stream, metadata }) => {
client.videoStream!.then(({ stream, metadata }) => {
runInAction(() => {
RECORD_STATE.recorder.videoMetadata = metadata;
});
Expand Down

0 comments on commit f52ac7c

Please sign in to comment.