Try requesting more keyframes

This commit is contained in:
tsightler
2023-08-28 18:41:48 -04:00
parent 0a19cbbfea
commit 0bb1f5e2fc
2 changed files with 5 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ export class StreamingSession extends Subscribed {
}
const usingOpus = await this.isUsingOpus
this.requestKeyFrame()
const ffmpegInputArguments = [
'-hide_banner',
'-protocol_whitelist',
@@ -102,6 +104,8 @@ export class StreamingSession extends Subscribed {
return this.videoSplitter.send(rtp.serialize(), { port: videoPort })
})).subscribe())
this.requestKeyFrame()
this.onCallEnded.pipe(take(1)).subscribe(() => ff.stop())
ff.writeStdin(inputSdp)