Re: [mediacapture-screen-share] A CaptureController object for getDisplayMedia() (#230)

> Rejecting the promise is probably better.

We can do the following if you'd like:
* Timer in the content process elapses -> reject the promise.
* Timer in the trusted process elapses -> silent failure as no-op.

Note:
* `WOO-start(browser) <= WOO-start(content)` and `WOO-end(browser) <= WOO-end(content)`, and obvious `start < end` for both, but nothing else can be guaranteed.
* It could be that setFocusBehavior() is called after 0.4999 seconds from one process's view, but after 0.5001 seconds from another's. This will lead to no-op.

> Controller is not transferrable so far.

IIRC, when presenting to the WG, or possibly during our editor meetings, @jan-ivar spoke of the controller being transferable. We can start with it as untransferable and iterate, though. That's more than fine with me.

> ditto for track being stopped

I'd still want focus-change to stop then, but it's not terribly important for me given the short timer, and how the user would not really notice the ordering of track-stopped focus-changed anyway.

> It should probably be left to UA as this should be an edge case.

Let's go with that then. It would be hard for me to commit to a value now. I'd rather set it experimentally and be free to tweak it if the need arises.

---

Sounds like we're nearly there? If @jan-ivar agrees, I can send the PR.

-- 
GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/230#issuecomment-1238309993 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 September 2022 15:29:04 UTC