-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make setMicrophoneActive and setCameraActive return promises. #312
Make setMicrophoneActive and setCameraActive return promises. #312
Conversation
@jan-ivar, @steimelchrome, PTAL. |
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.
This looks good generally though I don't really know much about MediaStreamTrack
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.
Thanks for this! Some nits.
I've only commented on setMicrophoneActive(false) but they apply to setCameraActive(false) as well.
index.bs
Outdated
urlPrefix: https://www.w3.org/TR/mediacapture-streams/; spec: mediacapture-main | ||
type: dfn | ||
text: MediaStreamTrack; url:#mediastreamtrack | ||
text: MediaStreamTrack muted state; url:#track-muted | ||
text: set MediaStreamTrack muted state; url:#set-track-muted |
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.
Can we get these exported properly from the other spec if needed?
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.
How does w3c/mediacapture-main#986 look?
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.
You may to update https://w3c.github.io/mediasession/#example-microphone-camera-hangup as well
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.
Forgot to request changes with my earlier comments.
8ccde85
to
79293d8
Compare
Let's do that in a follow-up, given the examples are still ok, at least in Chrome. |
Define steps for each of these methods. Mention the possibility to mute/unmute tracks based on setMicrophoneActive/setCameraActive calls. Mention the possibility for the user agent to deny the mutation of capture states via setMicrophoneActive/setCameraActive calls.
79293d8
to
772f0ec
Compare
Co-authored-by: Jan-Ivar Bruaroey <jan-ivar@users.noreply.github.com>
Co-authored-by: Jan-Ivar Bruaroey <jan-ivar@users.noreply.github.com>
Co-authored-by: Jan-Ivar Bruaroey <jan-ivar@users.noreply.github.com>
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.
Looks great, thanks!
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.
lgtm, thanks!
SHA: fac2b9a Reason: push, by youennf Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Define steps for each of these methods.
Mention the possibility to mute/unmute tracks based on setMicrophoneActive/setCameraActive calls. Mention the possibility for the user agent to deny the mutation of capture states via setMicrophoneActive/setCameraActive calls.
Preview | Diff