Skip to content

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

Open
pat154 wants to merge 1 commit into
DeltaCircuit:masterfrom
pat154:set-custom-media-stream
Open

Added function to set a custom media stream after initialisation#122
pat154 wants to merge 1 commit into
DeltaCircuit:masterfrom
pat154:set-custom-media-stream

Conversation

@pat154

@pat154 pat154 commented Apr 9, 2023

Copy link
Copy Markdown

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