fix: fix build error

This commit is contained in:
Simon Chan 2025-08-28 16:40:34 +08:00
parent ae42638b8b
commit 559a5fa13a
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD

View file

@ -46,7 +46,7 @@ export class AdbScrcpyVideoStream implements ScrcpyVideoSize {
.pipeThrough(this.#options.createMediaStreamTransformer()) .pipeThrough(this.#options.createMediaStreamTransformer())
.pipeThrough( .pipeThrough(
new InspectStream( new InspectStream(
(packet) => { (packet): undefined => {
if (packet.type === "configuration") { if (packet.type === "configuration") {
switch (this.#metadata.codec) { switch (this.#metadata.codec) {
case ScrcpyVideoCodecId.H264: case ScrcpyVideoCodecId.H264: