-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
…t as it resets without a form
…ams_info timer, only create player pc when there is at least one publisher track
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.
The changes are great -- just one issue
lib/live_ex_webrtc/publisher.ex
Outdated
# Check the "Record stream?" checkbox by default if recordings are allowed | ||
record? = publisher.recordings? != nil |
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.
It's a boolean, right?
# 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 |
lib/live_ex_webrtc/publisher.ex
Outdated
{:ok, recorder} = Recorder.start_link() | ||
recorder |
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.
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
67caa46
to
ecc14a4
Compare
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 PR moves Recorder to be spawned by Publisher. This way user doesn't have to care about spawning Recorder.
I also: