Skip to content

Commit

Permalink
ffmpeg: Expose stdout callback to user (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuehlz authored Jan 10, 2024
1 parent 4b4e561 commit ea11e78
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ring-client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@eneris/push-receiver": "^3.1.5",
"@homebridge/camera-utils": "^2.2.4",
"@homebridge/camera-utils": "^2.2.5",
"@peculiar/asn1-schema": "^2.3.8",
"@peculiar/webcrypto": "^1.4.3",
"@types/socket.io-client": "1.4.36",
Expand Down
2 changes: 2 additions & 0 deletions packages/ring-client-api/streaming/streaming-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface FfmpegOptions {
input?: SpawnInput[]
video?: SpawnInput[] | false
audio?: SpawnInput[]
stdoutCallback?: (data: Buffer) => void
output: SpawnInput[]
}

Expand Down Expand Up @@ -138,6 +139,7 @@ export class StreamingSession extends Subscribed {
...(ffmpegOptions.output || []),
),
ffmpegPath: getFfmpegPath(),
stdoutCallback: ffmpegOptions.stdoutCallback,
exitCallback: () => this.callEnded(),
logLabel: `From Ring (${this.camera.name})`,
logger: {
Expand Down

0 comments on commit ea11e78

Please sign in to comment.