w3c / mediacapture-surface-control

Web API allowing capturing applications limited control over captured surfaces.
https://w3c.github.io/mediacapture-surface-control/
Other
9 stars 1 forks source link

Extend API to Support PageUp/PageDown Button Press #10

Open vishaldialpad opened 4 months ago

vishaldialpad commented 4 months ago

We successfully utilized the current API to control Slides, achieving a working MVP. However, it would be highly beneficial if the API could be extended to also support passing PageUp/PageDown button presses. This enhancement would improve functionality and usability in our application.

guidou commented 2 months ago

While this would be useful for several use cases, it has been decided that keystrokes are beyond the scope of this API since it would raise serious privacy issues.

eladalon1983 commented 2 months ago

Passing the keystroke of PageUp is indeed out of scope. But it might be possible to skip that and tell the captured tab to "scroll the viewport upwards by a fixed amount" or something similar that maps not to the key, but to the concept of scrolling "the main target" or something similar.