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

Adding new optional utility properties #24

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

plauche
Copy link
Contributor

@plauche plauche commented Aug 31, 2020

I ended up expanding this PR into three new optional properties:

  • onStart - A function similar to onStop allowing for custom behavior when recording starts.
  • customMediaStream - Instead of just passing in a deviceId I opted to allow the user to pass in their own MediaStream 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.

@plauche plauche changed the title Adding optional deviceId prop Adding new optional utility properties Sep 8, 2020
@plauche plauche marked this pull request as ready for review September 8, 2020 20:07
@DeltaCircuit
Copy link
Owner

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.

@no-1ne
Copy link

no-1ne commented Apr 22, 2021

Hello passing customMediaStream is handy, any chance this pull request be revived

@royherma
Copy link

Please let's take care of this - customMediaStream is important!

@VinSpee
Copy link
Contributor

VinSpee commented Mar 26, 2022

I've resurrected this w/ the latest master in #92

DeltaCircuit pushed a commit that referenced this pull request Apr 12, 2022
* 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>
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.

6 participants