Open eladalon1983 opened 9 months ago
This seems reasonable to me.
However, as observed in Chrome, the cursor is painted separately from the content, typically by the underlying OS; and has to be re-rendered on top of the captured frame before delivery to consumers. The process of capturing the cursor position and re-rendering it is async from the rendering and capture of the element, so the captured element + cursor in the media stream will not match exactly what is rendered on-screen.
Under normal conditions[*], I'd expect the discrepancy to be small wrt coordinates delta, short wrt time, privacy-trivial, and not impactful wrt usability. I could add the original proposal to the spec, but use SHOULD rather than MUST, then clarify with a note the possibility of discrepancies due to implementation inaccuracy. Wdyt?
-- [*] I.e. real human being operating a reasonable mouse, as opposed to software intentionally snapping the cursor around at high speed.
Yes, the discrepancy should be small, but could be noticeable when e.g. dragging an element around.
What is the desired behavior for capturing the cursor?
IMHO, the cursor should: