opentok-meet icon indicating copy to clipboard operation
opentok-meet copied to clipboard

Improve the screenshare extension install flow

Open aullman opened this issue 9 years ago • 3 comments

  1. Follow the prompts to install the screen sharing extension.
  2. Reload the page once the extension has installed.
  3. Click the green screen sharing button again. what you should do instead is:
  4. once the extension has been installed, save the user intent to share the screen in localStorage
  5. Reload the page
  6. start sharing the screen without user interaction

No click required, makes the UX better. Appear.in has been doing that for a while...

Caveat: If you use window.postMessage to communicate with the extension sometimes it takes some time for the content script to execute and install the listener which leads to weird timing bugs. Note that the content script has access to the windows localStorage which makes checking whether the extension is installed easy.

Feel free to quote me on this :-)

aullman avatar May 05 '15 22:05 aullman

see https://github.com/HenrikJoreteg/getScreenMedia/pull/9 for an even better, reload-less way.

fippo avatar May 15 '15 02:05 fippo

I noticed that appear.in didn't require a reload at all, nice!

aullman avatar May 18 '15 01:05 aullman

:+1:

aoberoi avatar May 29 '15 01:05 aoberoi