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

Added function to set a custom media stream after initialisation #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pat154
Copy link

@pat154 pat154 commented Apr 9, 2023

Added setCustomMediaStream function that is returned from the media recorder hook. This allows us to set the custom media stream after initialisation. This can be useful in cases where we want to use custom logic when selecting a media stream and allows us to set the media stream independently from starting a recording.

In my case, I needed to display a countdown after selecting media but before recording started. This function allowed me to do that by manually calling getDisplayMedia and passing the value into setCustomMedia before calling startRecording.

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.

1 participant