mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 02:09:18 +02:00
feat(scrcpy): support server version 2.1
This commit is contained in:
parent
ef583779fa
commit
419a7559fe
16 changed files with 243 additions and 94 deletions
|
@ -75,7 +75,7 @@ interface AdbScrcpyClientInit {
|
|||
process: AdbSubprocessProtocol;
|
||||
stdout: ReadableStream<string>;
|
||||
|
||||
videoStream: ReadableStream<Uint8Array>;
|
||||
videoStream: ReadableStream<Uint8Array> | undefined;
|
||||
audioStream: ReadableStream<Uint8Array> | undefined;
|
||||
controlStream:
|
||||
| ReadableWritablePair<Uint8Array, Consumable<Uint8Array>>
|
||||
|
@ -259,7 +259,7 @@ export class AdbScrcpyClient {
|
|||
return this._screenHeight;
|
||||
}
|
||||
|
||||
private _videoStream: Promise<AdbScrcpyVideoStream>;
|
||||
private _videoStream: Promise<AdbScrcpyVideoStream> | undefined;
|
||||
public get videoStream() {
|
||||
return this._videoStream;
|
||||
}
|
||||
|
@ -293,7 +293,9 @@ export class AdbScrcpyClient {
|
|||
this._process = process;
|
||||
this._stdout = stdout;
|
||||
|
||||
this._videoStream = this.createVideoStream(videoStream);
|
||||
this._videoStream = videoStream
|
||||
? this.createVideoStream(videoStream)
|
||||
: undefined;
|
||||
|
||||
this._audioStream = audioStream
|
||||
? this.createAudioStream(audioStream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue