fix(screenshare): Pass _desktopSharingSourceDevice as shareOptions when available.

Fixes an issue when external cam as screensharing source fails on Spot with multi-stream enabled.
pull/12330/head jitsi-meet_7908
Jaya Allamsetty 2 years ago committed by Saúl Ibarra Corretgé
parent 02da4a1c42
commit b1931de7b0
  1. 5
      react/features/base/conference/middleware.web.js

@ -186,6 +186,11 @@ async function _toggleScreenSharing({ enabled, audioOnly = false, shareOptions =
if (enable) {
let tracks;
const { _desktopSharingSourceDevice } = state['features/base/config'];
if (!shareOptions.desktopSharingSources && _desktopSharingSourceDevice) {
shareOptions.desktopSharingSourceDevice = _desktopSharingSourceDevice;
}
const options = {
devices: [ VIDEO_TYPE.DESKTOP ],
...shareOptions

Loading…
Cancel
Save