-
Notifications
You must be signed in to change notification settings - Fork 132
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
Adding new optional utility properties #24
base: master
Are you sure you want to change the base?
Conversation
Hey @plauche I know this PR has been here for more than a month. Had multiple production releases within the last 30 days at my work. So sorry for missing this. This is tested with multiple cases, right? Can I take your word for it? I don't want to block this PR anymore because of my time constraints. Let me know if this can be merged. I'll merge it right away. And a million thanks for taking your time and improving this library. |
Hello passing customMediaStream is handy, any chance this pull request be revived |
Please let's take care of this - customMediaStream is important! |
I've resurrected this w/ the latest master in #92 |
* Adding optional deviceId prop * Including lib * Adding more broad customMediaStream prop * Added stopStreamsOnStop prop to prevent stopping underlying streams when recording stops * Added onStart hook * Removing deviceId prop in favor of customMediaStream Co-authored-by: Ryan Plauche <ryan.plauche@conduit.vc>
I ended up expanding this PR into three new optional properties:
onStart
- A function similar toonStop
allowing for custom behavior when recording starts.customMediaStream
- Instead of just passing in adeviceId
I opted to allow the user to pass in their ownMediaStream
for total control over what is recorded.stopStreamsOnStop
- The current default behavior is to stop the media streams when the recording stops. This flag preservers that behavior, but also allows the option to not stop streams when recording stops.