-
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
Fixes to recording #1808
Fixes to recording #1808
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.
In general I think this looks good. I do have a question that I feel would avoid adding new methods to set the hasVideo and hasAudio flags when we already have that info when the object is created
log.info(`message: Adding ExternalOutput, id: ${eoId}, url: ${url},`, | ||
logger.objectToLog(this.options), logger.objectToLog(this.options.metadata)); | ||
const externalOutput = new erizo.ExternalOutput(this.threadPool, url, | ||
Helpers.getMediaConfiguration(options.mediaConfiguration)); | ||
externalOutput.id = eoId; | ||
externalOutput.setHasAudioAndVideo(hasAudio, hasVideo); |
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.
Why not just pass hasAudio
and hasVideo
in the constructor just like we do for MediaStream?
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.
Makes sense, I will update it
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.
Looks good to me 👍 but please fix the log level as indicated in the comment
Thanks!
@@ -34,7 +34,7 @@ log4j.logger.dtls.DtlsSocketContext=WARN | |||
log4j.logger.dtls.SSL=WARN | |||
|
|||
log4j.logger.media.ExternalInput=WARN | |||
log4j.logger.media.ExternalOutput=WARN | |||
log4j.logger.media.ExternalOutput=DEBUG |
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 making this WARN
again
Thanks @Arri98 for giving credit and for your contribution. |
Description
Fixed some issues with recording:
Also removed the toggleRecording button in the basic example and changed it for individual buttons so the user can select the stream to record.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs
No changes
[] It includes documentation for these changes in
/doc
.No changes