Re: [w3ctag/design-reviews] Site-initiated mirroring (Issue #745)

Hi Dapeng,

In those cases, the receiver might keep on showing the last frame it received before it got disconnected -- is that the security/privacy issue you're concerned about?

For network problems, I imagine we'd want to wait some time before we time out and disconnect, just in case the connection is restored quickly and we can resume the mirroring session. Once we time out then the UA can terminate the session and notify the web page via the [`onterminate` event](https://w3c.github.io/presentation-api/#interface-presentationconnection). At that point the UA cannot communicate with the receiver so what the receiver does is up to its implementation, but I expect it to typically also end the session after a timeout.

If the tab is closed, then the UA can terminate the session immediately, and if the web page persists in a non-fully-active state then we can notify it via `onterminate`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/745#issuecomment-1171748040
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/745/1171748040@github.com>

Received on Thursday, 30 June 2022 22:50:18 UTC