Skip to content

Conversation

@Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Apr 15, 2024

☑️ Resolves

  • Closes preferred media devices follow-up #12064
  • rewrite media preferences functions
    • fix registering only last device when populate with several
    • fix selecting last available device in list when join (instead of last used | first available)
    • drop 'promote' option as unused (we register promoted device in another place)
    • keep default devices in preferences list
    • remove fallback id logic
    • move console.log from function for testing purposes

🖌️ UI Checklist

🚧 Tasks

  • Check behavior without granted permissions

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@Antreesy Antreesy added this to the 💙 Next Major (30) milestone Apr 15, 2024
@Antreesy Antreesy requested a review from DorraJaouad April 15, 2024 08:50
@Antreesy Antreesy self-assigned this Apr 15, 2024
@Antreesy Antreesy force-pushed the fix/12064/follow-up-prefs branch from cd52f2a to 4cc32e9 Compare April 15, 2024 09:25
Copy link
Contributor

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part 1

@Antreesy Antreesy force-pushed the fix/12064/follow-up-prefs branch 4 times, most recently from 8546bc8 to 177180d Compare April 16, 2024 09:49
@Antreesy Antreesy marked this pull request as ready for review April 16, 2024 09:51
@Antreesy Antreesy force-pushed the fix/12064/follow-up-prefs branch from 177180d to ae1da64 Compare April 16, 2024 10:06
@Antreesy Antreesy requested a review from DorraJaouad April 16, 2024 10:07
@nickvergessen
Copy link
Member

There seems to be an issue now with Chromium at least.

After resetting permissions and reloading the page:
grafik

It's only asking for my camera permission after several seconds and even after granting it does not allow to enable the camera.
Browser console is yelling: Error getting video stream: OverconstrainedError:

@nickvergessen
Copy link
Member

If I reload after accepting permissions it seems to be working properly

- fix registering only last device when populate with several
- fix selecting last available device in list when join (instead of last used | first available)
- move console.log from function for testing purposes
- add types, enum, refactor functions
- drop 'promote' option as unused (we register promoted device in another place)

Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the fix/12064/follow-up-prefs branch from ae1da64 to 168280d Compare April 16, 2024 11:30
Copy link
Contributor

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in different senarios, ✅

When user selects nothing (None) , preferences won't be applied anymore as we expect the user doesn't want to have any device set anymore.

When user manually selects in preview and without joining call, we assume was just experimenting devices and we do not update preferences.

@nickvergessen
Copy link
Member

/backport to stable29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preferred media devices follow-up

4 participants