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
feat: add enableLocalEcho flag to setDisplayMediaRequestHandler() callback #37315
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
FYI, I have zero C++ experience and did my best to kind of figure things out as a JS dev and read through the Contributing section of the Electron docs as a guide. I do have a colleague who is versed in C++ and will take over should any revisions required get pretty complicated. I'm not too keen on having a property that relies on another property being set with a specific type to activate, but not sure how to go about it overall. Also the naming of the flag itself feels odd to have it as I couldn't figure out how to update the typescript definition for the callback. I am aware that |
I don't have any further edits to the PR - it should be ready for review. |
@VerteDinde is there anything about this PR that prevents it from getting a review? Or just need to schedule it for review within your sprint process? |
@theogravity there's nothing more you need to do, this is already in our queue. |
@nornagon Thanks for your time with the feedback. I've updated the PR with what we've discussed. |
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.
API LGTM, but needs a bit of documentation work.
(JFYI, our process requires 2 members of @electron/wg-api to approve API changes, so we need one more review for this.) |
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.
API LGTM
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.
API LGTM
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
@nornagon Could this be part of the 23 or 24 release, or is it too late for that train? |
/trop run backport-to 24-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
/trop run backport-to 23-x-y |
I have automatically backported this PR to "24-x-y", please check out #37528 |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "23-x-y", please check out #37529 |
Description of Change
This adds a boolean option called
enableLocalEcho
to the callback handler forsetDisplayMediaRequestHandler()
which prevents input from being echoed in the local output stream (e.g., speaker). It can only be used if theaudio
property is set to aWebFrameMain
. Closes #37293.Checklist
npm test
passesRelease Notes
Notes: Added the
enableLocalEcho
flag to the session handlerses.setDisplayMediaRequestHandler()
callback for allowing remote audio input to be echoed in the local output stream whenaudio
is aWebFrameMain
.