Skip to content
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

Merged
merged 4 commits into from
Sep 16, 2019
Merged

Conversation

jcague
Copy link
Contributor

@jcague jcague commented Sep 9, 2019

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.

Copy link
Contributor

@lodoyun lodoyun left a 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;
Copy link
Contributor

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!!');
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcague jcague merged commit 69f1a97 into lynckia:master Sep 16, 2019
@jcague jcague deleted the fix/external_input branch September 16, 2019 11:59
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants