-
Notifications
You must be signed in to change notification settings - Fork 28
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
Detect when minimizing a window pauses capture (was: Capability polling - capture-while-minimized) #257
Comments
The current wording is unclear, is there a chance we can standardize more of the behavior in this area?
If we standardize more of the behavior, the developer will know which warnings to provide without querying a new capability or without doing UA string checks. |
Makes sense to me.
I am not sure that's desirable. Especially on Windows, I could see a user tapping the shared window's taskbar entry to just minimize a window and get it out of the way. It would not indicate a user's desire to stop the capture.
The OS-level APIs for capture might differ in whether they allow a minimized window to be captured. |
This makes sense to me as well.
I agree. But it sounds like we agree that if minimizing windows would stop the capture, then the UA MUST fire mute/unmute while minimized. Wouldn't this solve the OP use case? |
Hmm the existing wording in https://w3c.github.io/mediacapture-screen-share/#hidden-display-surfaces seems to cover this fairly well. @youennf can you elaborate on what is not clear there? |
I was probably looking only at the paragraphe above. |
It would almost solve the problem. Missing functionality includes:
|
Recall what the spec says about minimized surfaces:
So minimizing a window might pause the capture.
Suppose a Web developer wants to warn users if minimizing windows would stop the capture; we have an example of such a developer here:
Currently, there's no way for this developer to know if the warning should be issued. It would be nice if developers could query that. Ideally before getDisplayMedia() is ever called, but possibly also after, via a MediaStreamTrackCapability.
The text was updated successfully, but these errors were encountered: