Skip to content

Commit

Permalink
Add raw meta data to H264Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hbc007 committed Oct 18, 2023
1 parent 98b9290 commit 863ee76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adb/thirdparty/scrcpy/Scrcpy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/adb/thirdparty/scrcpy/ScrcpyModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export interface H264Configuration {

croppedWidth: number;
croppedHeight: number;

data: Uint8Array;
}


Expand Down

0 comments on commit 863ee76

Please sign in to comment.