mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-09-26 21:01:12 +08:00
Try requesting more keyframes
This commit is contained in:
@@ -71,6 +71,7 @@ async function startLiveStream(streamData) {
|
||||
streamData.rtspPublishUrl
|
||||
]
|
||||
})
|
||||
|
||||
parentPort.postMessage({type: 'log_info', data: 'Live stream transcoding process has started'})
|
||||
|
||||
liveStream.onCallEnded.subscribe(() => {
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user