-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ExternalInput for RTSP sources #1453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. It definitely looks like it will make ExternalInput more stable and flexible.
|
||
if (keyframe_requested_) { | ||
cPicture->pict_type = AV_PICTURE_TYPE_I; | ||
cPicture->key_frame = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -256,13 +256,22 @@ class Source extends NodeClass { | |||
this.mediaStream.periodicPlis = undefined; | |||
} | |||
this.mediaStream.periodicPlis = setInterval(() => { | |||
this.mediaStream.generatePLIPacket(); | |||
if (this.ei) { | |||
log.warn('sending keyframe!!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using log.info
here
@@ -424,6 +433,7 @@ class ExternalInput extends Source { | |||
this.externalOutputs = {}; | |||
this.mediaStream = {}; | |||
this.connection = ei; | |||
this.label = label; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
ExternalInput code was outdated due to latest changes in code. This PR aims to fix most important issues I faced when trying to publish a RTSP flow.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs
Not needed.
[] It includes documentation for these changes in
/doc
.