Skip to content

Spawn recorder inside publisher #7

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

Merged
merged 23 commits into from
Feb 24, 2025
Merged

Spawn recorder inside publisher #7

merged 23 commits into from
Feb 24, 2025

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Feb 22, 2025

This PR moves Recorder to be spawned by Publisher. This way user doesn't have to care about spawning Recorder.

I also:

  • added a dedicated callback when recording finishes
  • made recording checkbox to always be present

@mickel8 mickel8 requested a review from sgfn February 22, 2025 12:48
Copy link
Member

@sgfn sgfn left a comment

Choose a reason for hiding this comment

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

The changes are great -- just one issue

Comment on lines 245 to 246
# Check the "Record stream?" checkbox by default if recordings are allowed
record? = publisher.recordings? != nil
Copy link
Member

Choose a reason for hiding this comment

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

It's a boolean, right?

Suggested change
# Check the "Record stream?" checkbox by default if recordings are allowed
record? = publisher.recordings? != nil
# Check the "Record stream?" checkbox by default if recordings are allowed
record? = publisher.recordings? == true

Comment on lines 661 to 662
{:ok, recorder} = Recorder.start_link()
recorder
Copy link
Member

Choose a reason for hiding this comment

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

We need to be able to pass arguments to the spawned Recorder instance. Otherwise, there's no way to configure e.g. uploads to S3

Base automatically changed from simulcast to master February 24, 2025 17:26
Copy link
Member

@sgfn sgfn left a comment

Choose a reason for hiding this comment

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

💯

@sgfn sgfn merged commit 1c6a362 into master Feb 24, 2025
@mickel8 mickel8 deleted the rec-checkbox branch April 14, 2025 09:26
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