switched to try a different function for wayland stream control

This commit is contained in:
Kaitlyn 2023-09-28 09:03:24 -04:00
parent dfe30d2eeb
commit d717e9de5d
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ export function registerScreenShareHandler() {
const video = data[0];
if (video)
await request.frame.executeJavaScript(
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([data])}, true)`
`Vesktop.Components.ScreenShare.StreamSettings(${JSON.stringify([data])}, true)`
);
callback(video ? { video: sources[0] } : {});

View file

@ -116,7 +116,7 @@ function ScreenPicker({ screens, chooseScreen }: { screens: Source[]; chooseScre
);
}
function StreamSettings({
export function StreamSettings({
source,
settings,
setSettings