From 863ee767826ad976c3b66307999df355a4333f5a Mon Sep 17 00:00:00 2001 From: hubochao Date: Wed, 18 Oct 2023 18:13:58 +0800 Subject: [PATCH] Add raw meta data to `H264Configuration` --- src/adb/thirdparty/scrcpy/Scrcpy.ts | 3 ++- src/adb/thirdparty/scrcpy/ScrcpyModels.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/adb/thirdparty/scrcpy/Scrcpy.ts b/src/adb/thirdparty/scrcpy/Scrcpy.ts index b6c6d165..80ffbe31 100644 --- a/src/adb/thirdparty/scrcpy/Scrcpy.ts +++ b/src/adb/thirdparty/scrcpy/Scrcpy.ts @@ -509,7 +509,8 @@ export default class Scrcpy extends EventEmitter { const videoConf: H264Configuration = { profileIndex, constraintSet, levelIndex, encodedWidth, encodedHeight, - cropLeft, cropRight, cropTop, cropBottom, croppedWidth, croppedHeight + cropLeft, cropRight, cropTop, cropBottom, croppedWidth, croppedHeight, + data: streamChunk }; this.lastConf = videoConf; this.emit('config', videoConf); diff --git a/src/adb/thirdparty/scrcpy/ScrcpyModels.ts b/src/adb/thirdparty/scrcpy/ScrcpyModels.ts index 4cf2036d..fa6e192a 100644 --- a/src/adb/thirdparty/scrcpy/ScrcpyModels.ts +++ b/src/adb/thirdparty/scrcpy/ScrcpyModels.ts @@ -84,6 +84,8 @@ export interface H264Configuration { croppedWidth: number; croppedHeight: number; + + data: Uint8Array; }