Skip to content

Commit

Permalink
Merge pull request #19 from hbc007/add-raw-data-in-h264-configuration
Browse files Browse the repository at this point in the history
Add raw metadata to `H264Configuration`
  • Loading branch information
UrielCh authored Oct 18, 2023
2 parents 98b9290 + 863ee76 commit f1d3f8a
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 f1d3f8a

Please sign in to comment.